静的サイトジェネレータ「Hugo」と技術文書公開向けテーマ「Docsy」でOSSサイトを作る | さくらのナレッジ
URL、ディレクトリ構成
uglyURLs で
public/topic/index.html public/topic/something.html public/topic/someotherthing.html
の構成にする場合は
My workaround is to rename _index.html to something else (e.g. __index.html), and add slug = "index".
This will create the page at public//index.html
Hugo with uglyURLs = true generates /public/section.html instead of /public/section/index.html · Issue #4428 · gohugoio/hugo · GitHub
_index.html のファイル名変更 Front Matter で url を指定する。
置換
https://gohugo.io/functions/replacere/
Hugo の置換で Markdown から生成した HTML を加工する - Qiita
複数
You could do it like this
{{ $content := replace .Content "A" "B" }} {{ $content = replace $content "C" "D" }} ... {{ $content }}Replace html content from Hugo Pipes? - #11 by inwardmovement - support - HUGO