zbrox / anpu-zola-theme

The Anpu theme for the Zola static site generator
https://anpu-zola-theme.vercel.app
MIT License
65 stars 34 forks source link

Can't get tags to work (404) #4

Closed TonySpegel closed 3 years ago

TonySpegel commented 3 years ago

Hi there, I'd like to use your theme and tried to integrate it in mine by following your READ.ME and did everything what is mentioned there. So I started a new project by running zola initsaid yes to everything and then cloned this repo into my themes directory and also edited my config.toml - which now looks like this:

base_url = "https://example.com"

compile_sass = true
build_search_index = true

theme = "anpu"

taxonomies = [
    { name = "categories", rss = true},
    { name = "tags", rss = true},
]

[markdown]
highlight_code = true

[extra]
anpu_menu_links = [
    { url = "$BASE_URL/about/", name = "About" },
    { url = "$BASE_URL/tags/", name = "Tags" },
]
anpu_date_format = "%e %B %Y"

So pretty much the same and without overwriting it this should be it right? But if I follow the tags link in the main menu all I get is

404: Page not found
Sorry, this page doesn't seem to exist.

am I missing something which needs to be done in order to have this site by itself start working? I haven't put any blog posts in it yet or did anything beside the things I've mentioned - although I have tried overwriting the file by putting them in the same structure in my site.

I appreciate any help and than you :)

zbrox commented 3 years ago

Hey, sorry for the late reply. I've been vacationing so I haven't seen this but will take a look in the upcoming days when I'm behind a computer.

zbrox commented 3 years ago

Hey @TonySpegel, I took a look using your config. Everything seems fine. I tested with the latest version of zola (0.14.0). What is probably happening here is that you still don't have any content which uses tags. Once you have at least 1 tag to some page, the tag listing page will be rendered. Try it out and let me know how it goes.

TonySpegel commented 3 years ago

I've figured it out tinkering a bit but can't tell exactly what it solved. I think I did something with tags 😅 i guess I didn't had copied the tag template into my own dir and thought it would use the standard template in any case

zbrox commented 3 years ago

Oh, it should use the standard template. I can tell you what I attempted. I tried out with the posted config in a blank project generated by the latest zola and then I just added some content that had tags. If I had no content the tags page would 404, but if I added at least 1 page with a tag it would render fine. Anyways, I'm glad it's solved. Good luck with your project!