This is the repository for the website content at restic.net, generated using Hugo.
NOTE: The "extended" version of Hugo must be used when building this website, as it uses SCSS for some parts of the styling. When downloading/installing Hugo, use the "hugo-extended" package.
The generated website can be checked for dangling links with muffet:
$ muffet https://restic.net
To create a new blog post, do the following:
- Run
hugo new blog/my-new-post.mdwheremy-new-postwill be the part of the URL that you control (besides the date, which is taken from the frontmatter in the file) - please keep it lowercase only! - Edit the newly created file
contents/blog/my-new-post.md- adjust the title and date if needed, and add the content in MarkDown format (supports inline HTML). - To make the post a draft or future publish it, see here.
- To embed an image in the post, place the image file in the
static/blog/directory and reference it in the post file like this(the text will be the alt/description of the image).
To re-generate the website, run hugo - this will run Hugo with the proper settings (configured in hugo.toml) and the website will be generated in the public/ directory.