aboutsummaryrefslogtreecommitdiff
path: root/content/en/docs/adyxax.org/this_website.md
blob: c346534716b4438046fe20569721936b4a3a2891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This website

This website is a static website build using [hugo](https://github.com/gohugoio/hugo). This article details how I installed hugo, how I initialised this website and how I manage it.

## Installing hugo

{{< highlight sh >}}
go get github.com/gohugoio/hugo
{{< / highlight >}}

This failed because the master branch in one of the dependencies was tainted, I fixed it with :
{{< highlight sh >}}
cd go/src/github.com/tdewolff/minify/
tig --all
git checkout v2.6.1
go get github.com/gohugoio/hugo
{{< / highlight >}}

This didn't build me the extended version of hugo that I need for the theme I chose, so I had to do :
{{< 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/alex-shpak/hugo-book themes/book
{{< / highlight >}}

## Live server for automatic rebuilding when writing

{{< highlight sh >}}
hugo server --bind 0.0.0.0 --minify
{{< / highlight >}}