diff options
author | Julien Dessaux | 2021-03-22 22:58:22 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-22 22:58:22 +0100 |
commit | e0fd5578d2e9b435019a662a78085b00f5177e45 (patch) | |
tree | a2bbde0d209a0b68286b3fa65b3b2bdfa955e3ee /content/blog/miscellaneous/switching-to-hugo.md | |
parent | Added a hugo markdown shortcode to automatically calculate my age (diff) | |
download | www-e0fd5578d2e9b435019a662a78085b00f5177e45.tar.gz www-e0fd5578d2e9b435019a662a78085b00f5177e45.tar.bz2 www-e0fd5578d2e9b435019a662a78085b00f5177e45.zip |
Reworked some docs _index and added an article on hugo shortcodes
Diffstat (limited to 'content/blog/miscellaneous/switching-to-hugo.md')
-rw-r--r-- | content/blog/miscellaneous/switching-to-hugo.md | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/content/blog/miscellaneous/switching-to-hugo.md b/content/blog/miscellaneous/switching-to-hugo.md deleted file mode 100644 index dc2841f..0000000 --- a/content/blog/miscellaneous/switching-to-hugo.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: "Switching to Hugo" -date: 2019-12-19 -description: I switched my personal wiki from dokuwiki to Hugo -tags: - - hugo ---- - -## Introduction - -This is the website you are currently reading. It is a static website built using hugo. This article details how I installed hugo, how I initialised this website and how I manage it. I often refer to it as wiki.adyxax.org because I hosted a unique dokuwiki for a long time as my main website (and a pmwiki before that), but with hugo it has become more than that. It is now a mix of wiki, blog and showcase of my work and interests. - -## Installing hugo - -{{< highlight sh >}} -go get github.com/gohugoio/hugo -{{< / highlight >}} - -You probably won't encounter this issue but this command failed at the time I installed hugo because the master branch in one of the dependencies was -tainted. I fixed it with by using a stable tag for this project and continue installing hugo from there: -{{< highlight sh >}} -cd go/src/github.com/tdewolff/minify/ -tig --all -git checkout v2.6.1 -go get github.com/gohugoio/hugo -{{< / highlight >}} - -This did not build me the extended version of hugo that I need for the [docsy](https://github.com/google/docsy) theme I chose, so I had to get it by doing : -{{< highlight sh >}} -cd ~/go/src/github.com/gohugoio/hugo/ -go get --tags extended -go install --tags extended -{{< / highlight >}} - -## Bootstraping this site - -{{< highlight sh >}} -hugo new site www -cd www -git init -git submodule add https://github.com/google/docsy themes/docsy -{{< / highlight >}} - -The docsy theme requires two nodejs programs to run : -{{< highlight sh >}} -npm install -D --save autoprefixer -npm install -D --save postcss-cli -{{< / highlight >}} - -## hugo commands - -To spin up the live server for automatic rebuilding the website when writing articles : -{{< highlight sh >}} -hugo server --bind 0.0.0.0 --minify --disableFastRender -{{< / highlight >}} - -To publish the website in the `public` folder : -{{< highlight sh >}} -hugo --minify -{{< / highlight >}} |