mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-20 07:28:49 +00:00
fix zola.toml config table scoping bug and JSON-LD safety
[[extra.menu]] silently swallowed ~20 later extra.* keys (posts_page_title, search_placeholder, show_rss_link, notfound_*, etc.) into the last menu entry/tag_descriptions table, since TOML absorbs bare keys into the last open table until a new header appears. show_rss_link was the only visibly broken one (RSS link missing from homepage); the rest were masked by matching template defaults. Also replaced Tera's default() filter with explicit if/else where values feed into JSON-LD, since default()'s fallback gets escaped in a way `safe` can't undo. Added author/dateModified to BlogPosting list entries.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% if config.extra.show_profile %}
|
||||
<div class="masthead">
|
||||
<p class="masthead-kicker">{{ config.extra.author | default(value="andwati") }}{% if config.extra.profile_subtitle %} — {{ config.extra.profile_subtitle }}{% endif %}</p>
|
||||
<p class="masthead-kicker">{{ config.extra.author }}{% if config.extra.profile_subtitle %} — {{ config.extra.profile_subtitle }}{% endif %}</p>
|
||||
<h1 class="hero-title masthead-title">{{ config.title }}</h1>
|
||||
<p class="hero-subtitle">{{ config.description }}</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user