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
{{ 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