Hugo-theme-zzo: series flag doesn't work

Created on 15 Feb 2020  路  4Comments  路  Source: zzossig/hugo-theme-zzo

I added the series flag to my post like categories and tags but it doesn't appear in the series section is it a bug or I made a mistake somewhere?

question

Most helpful comment

I found that you have the wrong config params. Add this

[taxonomies]
  category = "categories"
  tag = "tags"
  series = "series"

for the search, in your config.toml file

[outputs]
  page = ["HTML", "SearchIndex"]
  home = ["HTML", "RSS", "SearchIndex"]
  section = ["HTML", "RSS", "SearchIndex"]
  taxonomyTerm = ["HTML", "RSS", "SearchIndex"]
  taxonomy = ["HTML", "RSS", "SearchIndex"]

[outputFormats]
  [outputFormats.SearchIndex]
    mediaType = "application/json"
    baseName = "index"
    isPlainText = true
    notAlternative = true

In your params.toml file

searchResultPosition = "side" # side, main

All 4 comments

How did you set it in the front-matter?
I can't reproduce it on my local environment

I did this

---
title:
...
series:
- aaa
---

I did it too, this is my latest posts front-matter in the below link as you can see the series flag is there
photoshop.md

I found that you have the wrong config params. Add this

[taxonomies]
  category = "categories"
  tag = "tags"
  series = "series"

for the search, in your config.toml file

[outputs]
  page = ["HTML", "SearchIndex"]
  home = ["HTML", "RSS", "SearchIndex"]
  section = ["HTML", "RSS", "SearchIndex"]
  taxonomyTerm = ["HTML", "RSS", "SearchIndex"]
  taxonomy = ["HTML", "RSS", "SearchIndex"]

[outputFormats]
  [outputFormats.SearchIndex]
    mediaType = "application/json"
    baseName = "index"
    isPlainText = true
    notAlternative = true

In your params.toml file

searchResultPosition = "side" # side, main

thank you so much problem solved :1st_place_medal:

Was this page helpful?
0 / 5 - 0 ratings