Tag: Hugo
sudo port install hugo +extended
hugo new site demo
cd demo git init # anankeの場合 git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke # robustの場合 git submodule add https://github.com/dim0627/hugo_theme_robust.git themes/hugo_theme_robust echo 'theme = "ananke"' >> config.toml
hugo new post/my-first-post.md
hugo server -D
[markup] [markup.goldmark] [markup.goldmark.renderer] unsafe = true
baseurl="http://localhost/hugo" RelativeURLs=true CanonifyURLs=true
```go // ... code ```
``` pre ```
[markup] [markup.highlight] codeFences = true guessSyntax = false hl_Lines = "" lineNoStart = 1 lineNos = false lineNumbersInTable = true noClasses = true style = "monokai" tabWidth = 4
{{ if .Params.thumbnail }} {{ $image := .Resources.GetMatch .Params.thumbnail }} <div class="thumb" style="background-image: url('{{ $image.RelPermalink }}');"></div> {{ else }} <div class="thumb"></div> {{ end }}
''トラブルシューティング
sudo port install hugo +extended
theme = "mytheme"
$ hugo server --ignoreCache