mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-23 17:08:48 +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:
@@ -45,24 +45,6 @@ utterances_repo = "andwati/andwati.com"
|
||||
utterances_theme = "gruvbox-dark"
|
||||
utterances_theme_light = "github-light"
|
||||
|
||||
# Navigation Menu
|
||||
[[extra.menu]]
|
||||
name = "About"
|
||||
url = "/about/"
|
||||
match = "/about"
|
||||
[[extra.menu]]
|
||||
name = "Posts"
|
||||
url = "/posts"
|
||||
match = "/posts"
|
||||
[[extra.menu]]
|
||||
name = "Tags"
|
||||
url = "/tags/"
|
||||
match = "/tags"
|
||||
[[extra.menu]]
|
||||
name = "Archive"
|
||||
url = "@/archive/_index.md"
|
||||
match = "/archive"
|
||||
|
||||
# Features
|
||||
enable_search = true
|
||||
enable_theme_toggle = true
|
||||
@@ -95,15 +77,36 @@ post_nav_prev_label = "Previous"
|
||||
post_nav_next_label = "Next"
|
||||
share_label = "Share:"
|
||||
|
||||
# 404 page
|
||||
notfound_status = "Status: Not Found"
|
||||
notfound_title = "Document Not Found"
|
||||
notfound_body = "This page couldn't be located in the archive. It may have been moved, renamed, or never filed."
|
||||
|
||||
# Navigation Menu — array-of-tables must come after all plain [extra] keys,
|
||||
# since once opened, subsequent bare `key = value` lines belong to the last
|
||||
# array element, not back to [extra].
|
||||
[[extra.menu]]
|
||||
name = "About"
|
||||
url = "/about/"
|
||||
match = "/about"
|
||||
[[extra.menu]]
|
||||
name = "Posts"
|
||||
url = "/posts"
|
||||
match = "/posts"
|
||||
[[extra.menu]]
|
||||
name = "Tags"
|
||||
url = "/tags/"
|
||||
match = "/tags"
|
||||
[[extra.menu]]
|
||||
name = "Archive"
|
||||
url = "@/archive/_index.md"
|
||||
match = "/archive"
|
||||
|
||||
# Per-tag descriptions (used on /tags/<slug>/ pages instead of the generic
|
||||
# "Posts tagged X" line — keyed by tag slug, not display name)
|
||||
# "Posts tagged X" line — keyed by tag slug, not display name). Must be the
|
||||
# last table in the file for the same reason as [[extra.menu]] above.
|
||||
[extra.tag_descriptions]
|
||||
linux = "Practical notes on running Arch-based Linux distributions, from WiFi hotspot quirks to database setup."
|
||||
subresource-integrity = "How Subresource Integrity (SRI) hashes protect a site from tampered third-party scripts and stylesheets."
|
||||
garuda = "Setup notes for Garuda Linux, an Arch-based distribution built for performance."
|
||||
cors = "Notes on Cross-Origin Resource Sharing (CORS) and how browsers enforce cross-origin security policies."
|
||||
|
||||
# 404 page
|
||||
notfound_status = "Status: Not Found"
|
||||
notfound_title = "Document Not Found"
|
||||
notfound_body = "This page couldn't be located in the archive. It may have been moved, renamed, or never filed."
|
||||
|
||||
Reference in New Issue
Block a user