The source code for my TIL site, powered by Hugo using After Dark theme.
- Install Hugo
- Install After Dark version 1.6.1 by copying the theme into
themes/after-dark
(the site was configured for this version and I'm just too lazy to upgrade)
- Create a new post with
hugo new post/<post-name>.md
. Generally I'd use the date as the post name, sohugo new post/27-01-17.md
. - Edit the post at will:
vi content/post/27-01-17.md
- Generate the content with
hugo --theme=after-dark
- Run the server with
hugo server
- Commit all changes
- Run the deploy script:
bash _scripts/publish_toghpages.sh