-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop toc variable in TOML front matters
The `toc` variable was first removed from page & section front matters in Zola v0.10.0 (2020-02-17). getzola/zola@4aa2ba8 (Let toc is visable through Page & Section variables in templates (\#818), 2019-10-14) https://github.com/getzola/zola/releases/tag/v0.10.0 Then in Zola v0.19.0 (2024-06-21) unknown fields in section front matter are denied and raise "TOML parse error". getzola/zola@c054ed1 (Added support for multiple feeds (i.e. generating both Atom and RSS) (\#2477), 2024-06-19) https://github.com/getzola/zola/releases/tag/v0.19.0 In total, removal of `toc` variable in front matters solves build errors with Zola v0.19.0 or newer, and doesn't change the content of built website (ToC is always collected and whether it's shown is controlled by templates.)
- Loading branch information
Showing
4 changed files
with
0 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
+++ | ||
title = "Manual" | ||
sort_by = "weight" | ||
toc = true | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
+++ | ||
title = "News" | ||
sort_by = "date" | ||
toc = false | ||
+++ |