Use Hugo for managing site

Description

The initial version of the site is online. The HTML and CSS documents are maintained manually. This jira covers any work required to switching over to using Hugo.

Activity

Show:

Avtar Gill November 26, 2018 at 3:59 PM

Hugo is being used to manage content in my branch. I'm currently looking into how more markup can be moved into templates and use only markdown for authoring site content.

Avtar Gill November 23, 2018 at 1:32 AM
Edited

Initial bit of work can be found in the following branch: https://github.com/avtar/sojustrepairit.org/tree/SJRK-166

I had all the pages rendering using markdown files at one point but when it came time to push everything to a branch I realized some of the pages might have been cached and stopped being generated as I continued to poke around  Right now the home page works. I'll troubleshoot this further on Monday and update my notes in the previous comment.

Avtar Gill November 23, 2018 at 1:28 AM
Edited

hugo version
Hugo Static Site Generator v0.51/extended darwin/amd64 BuildDate: unknown

  • Create a new site in your site directory

    • hugo new site .

  • Use YAML config files instead of the default TOML

    • mv config.toml config.yml

  • Edit the newly generated config file

  • Create a new assets/css directory and copy CSS files to that location

    • mkdir -p assets/css

    • cp ~/path/to/your/style.css assets/css/

  • To minify and fingerprint our style.css use the following lines in your template

  • Remove any unneeded directories

    • rm -rf archetypes/ data/ themes/

  • Create a .gitignore file

  • Create your index/home page and split up content in the partials directory

    • touch layouts/index.html

    • mkdir -p layouts/{_default,partials}

  • This next step is not right, will troubleshoot and document

    • cp layouts/index.html layouts/_default/single.html

  • Create your static pages in the content directory as Markdown files

    • touch content/ {_index,about,resources,partners}.md

  • Start Hugo in "drafts" mode

    • hugo server --disableFastRender -D

Fixed

Details

Assignee

Reporter

Components

Priority

Created November 22, 2018 at 6:10 PM
Updated January 22, 2019 at 2:48 PM
Resolved January 22, 2019 at 2:48 PM