gersonbenavides / ataraxia-zola

A personal theme for Zola focused on readability that aims to be simple, beautiful, and modern.
https://gersonbenavides.github.io/
Mozilla Public License 2.0
13 stars 6 forks source link

Errors due to version updates 0.16.1 → 0.17.2 #2

Closed jackyliu16 closed 1 year ago

jackyliu16 commented 1 year ago

Hello, I have using nixpkgs as my version control tools, nowadays, I find that the example template seems could only been run in the Zola version 0.17.2, when I am changing my Zola version from 0.16.1 into 0.17.2, I'm facing a kind of error like this:

Run in Version 0.17.2:
Building site...
Warning: config.toml contains both default language specific information at base and under section `[languages.en]`, which may cause merge conflicts. Please use only one to specify language specific information
Error: Failed to serve the site
Error: Error parsing templates from the /templates directory
Error: Reason: Io error while writing rendered value to output: NotFound
Error: Reason: No such file or directory (os error 2)  
Run in version 0.16.1
Listening for changes in /home/jacky/Documents/zola/gersonbdev.github.io/{config.toml,content,static,themes}
Press Ctrl+C to stop

Web server is available at http://127.0.0.1:1111

Since that repository is identical, I wonder if there are some features that have been change.

This is my config.toml right now

# The base URL of the site.
base_url = "https://www.gersonb.dev/"

# To avoid problems with some variables due to multilingual support,
# you will find repeated variables in the language section,
# it is recommended that you keep those of your language and the general
# ones with the same data.
default_language = "en"
theme = "ataraxia"

# To find a detailed description of the following configuration variables
# you can go to https://www.getzola.org/documentation/getting-started/configuration/

output_dir = "public"

build_search_index = true
generate_feed = true
feed_filename = "atom.xml"
# feed_limit = 20

compile_sass = false

minify_html = false
hard_link_static = false

# ignored_content = []

[extra]
    author = "Gerson Benavides"

    # Use a square image (same height as width)
    avatar = "images/avatar.png"

    # To use a favicon convert your image to https://realfavicongenerator.net/,
    # then download and copy the package to static/images/favicon
    favicon = true
    locale = "es_CO"

    # Ataraxia uses Bootstrap icons,
    # you can go to https://icons.getbootstrap.com/ to find the full list
    [extra.menus]
        nav = [
            { name = "Inicio", url = "@/_index.md", icon = "bi-house" },
            { name = "Blog", url = "@/blog/_index.md", icon = "bi-file-earmark-text" },
            { name = "Proyectos", url = "@/projects/_index.md", icon = "bi-terminal" },
            { name = "Categorías", url = "https://www.gersonb.dev/categories", icon = "bi-bookmarks" }
        ]

    [extra.social]
        author_link = "https://www.gersonb.dev/"
        twitter = "@gersonbdev"
        links = [
            { name = "Email", url = "mailto:gersonbdev@gmail.com", icon = "bi-envelope-fill" },
            { name = "GitHub", url = "https://github.com/gersonbdev", icon = "bi-github" },
            { name = "LinkedIn", url = "https://www.linkedin.com/in/gersonbenavides/", icon = "bi-linkedin" },
            { name = "Twitter", url = "https://twitter.com/gersonbdev", icon = "bi-twitter" },
            { name = "Facebook", url = "https://www.facebook.com/gersonbdev/", icon = "bi-facebook" },
            { name = "Instagram", url = "https://www.instagram.com/gersonbdev/", icon = "bi-instagram" }
        ]

    [extra.seo]
        google_analytics = "G-K6X2LLGGLY"
        # google_search_console = ""
    [extra.comments]
        disqus = "gersonbdev"

    [extra.copyright]
        name = "CC BY 4.0"
        url = "https://creativecommons.org/licenses/by/4.0/"

[languages]
    [languages.en]
        title = "Website name"
        description = "Website Description"
        generate_feed = true
        feed_filename = "atom.xml"
        taxonomies = [
            { name = "tags", feed = true, paginate_by = 5  },
            { name = "categories", feed = true, paginate_by = 5 }
        ]

    [languages.en.translations]
        post = "Post"
        category = "Category"
        tag = "Tag"
        search = "Search"
        404_message = "Page not found"
        by = "By"
        posted = "Posted"
        updated = "Updated"
        categories = "Categories"
        tags = "Tags"
        share = "Share"

        next = "Next"
        previous = "Previous"

        short_copyright = "Some rights reserved."
        full_copyright = """\
            Except where otherwise noted, the blog posts on this site are \
            licensed under the Creative Commons Attribution 4.0 International \
            (CC BY 4.0) License by the author.\
            """

    [languages.cn]
        title = "Website name"
        description = "Website Description"
        generate_feed = true
        feed_filename = "atom.xml"
        taxonomies = [
            { name = "tags", feed = true, paginate_by = 5  },
            { name = "categories", feed = true, paginate_by = 5 }
        ]

    [languages.cn.translations]
        post = "Post"
        category = "Category"
        tag = "Tag"
        search = "Search"
        404_message = "Page not found"
        by = "By"
        posted = "Posted"
        updated = "Updated"
        categories = "Categories"
        tags = "Tags"
        share = "Share"

        next = "Next"
        previous = "Previous"

        short_copyright = "Some rights reserved."
        full_copyright = """\
            Except where otherwise noted, the blog posts on this site are \
            licensed under the Creative Commons Attribution 4.0 International \
            (CC BY 4.0) License by the author.\
            """

    [languages.es]
        title = "Gerson's website"
        description = "Proyectos, opinión, tecnología y más"
        generate_feed = true
        feed_filename = "atom.xml"
        taxonomies = [
            { name = "tags", feed = true, paginate_by = 5  },
            { name = "categories", feed = true, paginate_by = 5 }
        ]

    [languages.es.translations]
        post = "Entrada"
        category = "Categoría"
        tag = "Etiqueta"
        search = "Buscar"

        404_message = "Página no encontrada"

        by = "Por"
        posted = "Publicado"
        updated = "Actualizado"
        categories = "Categorías"
        tags = "Etiquetas"
        share = "Compartir"

        next = "Siguiente"
        previous = "Anterior"

        short_copyright = "Algunos derechos reservados."
        full_copyright = """\
            Salvo que se indique explícitamente, las entradas de este blog \
            están licenciadas bajo la Creative Commons Attribution 4.0 \
            International (CC BY 4.0) License por el autor.\
            """

[markdown]
    highlight_code = true
    # extra_syntaxes_and_themes = []
    highlight_theme = "gruvbox-dark"

    render_emoji = true

    external_links_target_blank = true
    external_links_no_follow = true
    external_links_no_referrer = true

    smart_punctuation = false

[search]
    include_title = true
    include_description = false
    include_path = false
    include_content = true
    # truncate_content_length = 100

[link_checker]
    # skip_prefixes = []
    # skip_anchor_prefixes = []

    internal_level = "error"
    external_level = "error"

[slugify]
    paths = "on"
    taxonomies = "on"
    anchors = "on"
gersonbenavides commented 1 year ago

It seems to be a bug in the handling of multiple languages in this new version of Zola, I already reported the problem to the Zola team repository.

gersonbenavides commented 1 year ago

Ok it wasn't a problem with the language handling, it turns out that now Zola requires a templates directory to be able to compile correctly (you can check thread #2150 in the Zola repository), to correct this create a folder with the name templates in the root directory of your project and if you are using git create an empty .gitkeep file.

You can check the repository of my site if you have any questions.

jackyliu16 commented 1 year ago

thanks very much, i have solved this problem.