Hugo の Robust theme のカスタマイズ
- POSTS
概要 Hugo の Robust theme で変更した部分のまとめ 基本的にはミサさんのサイト(勝手にリンク)の通り 基本的なこと themes/hugo_theme_robust/layouts 以下のファイルを layouts/ 以下に持ってくれば優先して使われる layouts/_default 以下と layouts/shortcodes 以下は、.html と .amp.html を用意しておけば、AMP 用のは .amp.html を使って生成してくれる layouts/partials 以下は amp で分けてくれない。 layouts/_default 以下に foo.html と foo.amp.html を置いて {{ .Render "foo" }} すれば分けれる。 右側の Latests を消す layouts/partials/latests.html を作成して 0 Byte にしておくと完全に消えるようだ (消さなくてもいい気がしてきたので、消すのを止めたけど) favicon を追加 themes/hugo_theme_robust/layouts/partials/meta.html を layouts/partials/meta.html にコピーして