Skip to content

Multilingual Menu #19

Open
Open
@jmzagorski

Description

@jmzagorski

I was wondering if it was in the scope of this project to change the menu for multi-lingual sites? Currently the index.html template has:

set index = get_section(path="_index.md")

Is it possible to set the index with this logic:

{% if lang == config.default_language %}{% set index = "_index.md" %}{% else %}{% set indx= "_index." ~ lang ~ ".md" %}{% endif %}

My team is pretty new to zola, so if we are overlooking something with this logic or your implementation please let me know. Right now we override the menu block with this logic. However, we may have a few documentation sites that will need to implement this override. Thanks for a great theme!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions