[Hugo] 関連記事の追加の仕方下記のコードをsingle.htmlの好きな場所に入れるだけ1 2 3 4 5 6 7 8 9 {{ $related := .Site.RegularPages.Related . | first 5 }} {{ with $related }} <h3>関連記事</h3> <ul> {{ range . }} <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ end }} </ul> {{ end }} refhttps://gohugo.io/content-management/related/