cydave / zola-theme-papermod

https://cydave.github.io/zola-theme-papermod/
MIT License
57 stars 11 forks source link

Error on building the project: taxonomy_list.html required #2

Closed P1R closed 1 year ago

P1R commented 1 year ago

Hello, I was trying to build the project but I got into an issue that could not solve which is finding a required file called taxonomy_list.html. (My guess the file was excluded from the repository)

zola build
Building site...
Checking all internal links with anchors.
> Successfully checked 0 internal link(s) with anchors.
-> Creating 5 pages (0 orphan) and 3 sections
Error: Failed to build the site
Error: Failed to render a list of tags page.
Error: Reason: Tried to render `taxonomy_list.html` but the template wasn't found
cydave commented 1 year ago

Hey, could you provide me with your config.toml and maybe your repository? I only implemented a bare minimum and may have forgotten to implement this as I never ran into this error.

P1R commented 1 year ago

Hello, Please notice that I was following your documentation and also copy sections from the config.toml example, after I was uncomenting is section to also understand the template and fixing the errors until I got into the one I could not solve.

here is the toml file data:

# The URL the site will be built for
base_url = "https://decentralizedscience.org"

# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false

taxonomies = [
    { name = "tags", feed = true }
]

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true

# Papermod Theme
theme = "papermod"

[extra]
# Put all your custom variables here

[extra.papermod]
title = "PaperMod"
default_theme = "auto"
theme = "light"
language_direction = "auto"
keywords = ["keyword1", "keyword2", "keyword3"]
#show_theme_toggle = true
#show_scroll_to_top = true
#show_code_copy_buttons = true
#show_reading_time = true
#show_word_count = false
#show_post_nav_links = true
#show_post_meta = true
#default_toc_open = false
#edit_post_url = "https://github.com/cydave/zola-theme-papermod/tree/master"
##copyright = ""
date_format = "%Y-%m-%d"
#navigation = [
#    { url = "$BASE_URL/archive", title = "Archive" },
#    { url = "$BASE_URL/tags", title = "Tags" },
#    { url = "https://getzola.com/", title = "Zola", is_external = true }
#]

home_title = "PaperMod"
home_content = "Welcome to a demo of the PaperMod theme!<br><b>PaperMod</b> is a simple but fast and responsive theme with a useful feature-set that enhances UX.<br>Do give a 🌟 on Github !<br>PaperMod is based on the hugo-PaperMod theme."
social_icons = [
    { url = "https://github.com/cydave", title = "GitHub", icon = "github" },
    { url = "https://infosec.exchange/@cydave", title = "Mastodon", icon = "mastodon" },
    { url = "https://twitter.com/_cydave", title = "Twitter", icon = "twitter" },
    { url = "$BASE_URL/atom.xml", title = "RSS", icon = "rss" },
]

Best Regards.

cydave commented 1 year ago

Thanks for your config. However, I can't seem to reproduce this exact issue you have. Invoking the following commands leads to a successful build:

$ git clone git@github.com:cydave/zola-theme-papermod.git && cd zola-theme-papermod && zola build

Cloning into 'zola-theme-papermod'...
remote: Enumerating objects: 201, done.
remote: Counting objects: 100% (201/201), done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 201 (delta 83), reused 169 (delta 55), pack-reused 0
Receiving objects: 100% (201/201), 203.15 KiB | 437.00 KiB/s, done.
Resolving deltas: 100% (83/83), done.
Building site...
Checking all internal links with anchors.
> Successfully checked 0 internal link(s) with anchors.
-> Creating 5 pages (0 orphan) and 3 sections
Done in 53ms.

I'm not sure if you run into this issue due to a version difference perhaps? I'm building with zola version 0.17.2.

I've removed the non-existent reference to the taxonomy_list.html template. Could you try cloning and building again?

P1R commented 1 year ago

Issue solved, thank you! :+1: