A quick introduction to the repository:
Check the private media
repo.
public/
is the static web site root and is where the static site is generated tocontent/
hosts all the page content that gets built into the templatethemes/kvpk/
is the root for the page theme and visual elements
- Template skeleton:
themes/kvpk/layouts/_default/baseof.html
- The different template parts (head, header, footer) can be found in
themes/kvpk/layouts/_default/
- Main page content:
content/_index.md
- Main page template:
themes/kvpk/layouts/index.html
- Single profile view template:
themes/kvpk/layouts/people/single.html
- Profiles:
content/people/
. These are used to generate the list in the main page as well as the source for the single page profile content. - Ota yhteyttä page content:
content/contact/_index.md
- The current setup automatically processes and includes CSS version of
assets/main.scss
in the base template (seehead.html
for reference) - There are page/section specific SCSS partials in
./assets/sass/
to prevent the CSS going full bolognese, please stay organised while styling - All custom styling efforts should be done in either the
main.scss
file, or preferably in a section/page specific partial that you're working on
- Create a new directory
content/newpagename
- Copy existing
_index.md
file tocontent/newpagename/_index.md
for reference - Edit it.
- If the page should be hidden from the navigation, change
hidden: true
- Weight variable can be used to determine the order of menu items
- Download hugo-extended for your OS from https://github.com/gohugoio/hugo/releases
- Unarchive the package and place hugo binary on your
$PATH
In project root:
hugo serve -D
This starts a development httpd on http://localhost:1313/
The development server does automatic liveupdate and refreshes the page every time you change content or templating.
In project root:
hugo
Come to #web Ping @joona / @joohoi, @Jaroneko, @anamus or @shadikka