Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 822 Bytes

hugo-taxonomy.md

File metadata and controls

29 lines (24 loc) · 822 Bytes

タクソノミーしたい(.Site.Taxonomies

/config/_default/hugo.toml : toml [taxonomies] category = "categories" tag = "tags" author = "authors" # 追加したタクソノミー group = "groups" # 追加したタクソノミー

/content/記事/index.md : toml title = "記事のタイトル" authors = ["名前1", "名前2"] groups = ["グループ1", "グループ2"]

/layouts/partials/taxonomy.html : go {{ range $taxonomy, $terms := .Site.Taxonomies }} {{ end }}

リファレンス