Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category and Tags pages #23

Open
kkarthik23 opened this issue Sep 1, 2019 · 1 comment
Open

Category and Tags pages #23

kkarthik23 opened this issue Sep 1, 2019 · 1 comment

Comments

@kkarthik23
Copy link

kkarthik23 commented Sep 1, 2019

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

@misdirectionmaster
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants