zhe/hugo-theme-slim

Category and Tags pages

Opened this issue · 1 comments

Hi,
I would like the categories and tags listed in separate pages
Using this in config.toml
[[menu.main]]
name="Categories"
url='/categories/"
weight=3
[[menu.main]]
name="Tags"
url='/tags/"
weight=4
I am able to list the categories and tags page on menu and get to categories and tags but it is blank how do we fill these pages?
If i use tags and categories in the content page it works for the individual pages however would like all tags and categories displayed in category and tags pages
Much appreciated if someone can assist.
Thanks

Hi @kkarthik23
Not sure if I understand well, but I did this for "tags" and it works for me :

  1. Copy "list.html" from theme folder
  2. Past it in layouts/tags folder (if you don't have this folder, create it)
  3. Change line 13 {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} {{ range $paginator.Pages }} to {{ range .Data.Pages }}

Kind regards