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

{{ config.title }} in theme template file not populating #2072

Closed
jklamer opened this issue Jan 15, 2023 · 2 comments
Closed

{{ config.title }} in theme template file not populating #2072

jklamer opened this issue Jan 15, 2023 · 2 comments
Labels
done in pr Already done in a PR

Comments

@jklamer
Copy link

jklamer commented Jan 15, 2023

Bug Report

Theme template using {{ config.title }} is not populating when title is in base level of config.toml. When the theme's template is changed to {{ config.extra.title }} the value is populated.

Environment

MacOs
Zola version:
zola 0.16.1

Expected Behavior

The title in the config generated in the HTML.

Current Behavior

Empty content instead

Step to reproduce

Configure project with a theme that uses {{ config.title }} (ex https://github.com/longfangsong/anatole-zola). Populate title in base level of config. Zola serve/zola build. Observe no content in the generated HTML

@Keats
Copy link
Collaborator

Keats commented Jan 15, 2023

I think this will be fixed by #2039. I'll merge it soon and try to reproduce.

@Keats
Copy link
Collaborator

Keats commented Jan 17, 2023

Yep that works for me with next branch, can you try?

@Keats Keats added the done in pr Already done in a PR label Jan 17, 2023
@Keats Keats closed this as completed Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done in pr Already done in a PR
Projects
None yet
Development

No branches or pull requests

2 participants