Skip to content

Removed unsupported fields date, updated #172

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

tmsagarofficial
Copy link
Contributor

I encountered an error when i tried to install this locally on my Win11 pc with zola 0.20.0

Error:

Building site...
Error: Failed to serve the site
Error: Error when parsing front matter of section `\\?\T:\flameshot-org.github.io\content\docs\_index.md`
Error: Reason: TOML parse error at line 4, column 1
  |
3 | time = 2021-05-01T08:00:00+00:00
  | ^^^^
unknown field `updated`, expected one of `title`, `description`, `sort_by`, `weight`, `draft`, `template`, `paginate_by`, `paginate_reversed`, `paginate_path`, `insert_anchor_links`, `render`, `redirect_to`, `in_search_index`, `transparent`, `page_template`, `aliases`, `generate_feeds`, `extra`
Building site...
Error: Failed to serve the site
Error: Error when parsing front matter of section `\\?\T:\flameshot-org.github.io\content\docs\_index.md`
Error: Reason: TOML parse error at line 4, column 1
  |
4 | updated = 2021-05-01T08:00:00+00:00
  | ^^^^^^^
unknown field `updated`, expected one of `title`, `description`, `sort_by`, `weight`, `draft`, `template`, `paginate_by`, `paginate_reversed`, `paginate_path`, `insert_anchor_links`, `render`, `redirect_to`, `in_search_index`, `transparent`, `page_template`, `aliases`, `generate_feeds`, `extra`

Fix:
Removed invalid updated field from _index.md front matter in section files.
Zola v0.18+ enforces strict field validation for sections (_index.md), which do not support updated or date.

@mmahmoudian mmahmoudian merged commit 89f98c1 into flameshot-org:master Apr 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants