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

Breaking changes documentation for v0.19 (generate_feeds, feed_filenames, path..) #2566

Closed
vvzen opened this issue Jul 4, 2024 · 2 comments

Comments

@vvzen
Copy link

vvzen commented Jul 4, 2024

Bug Report

Environment

Zola version: v0.19.1

Expected Behavior

zola serve works.

Current Behavior

zola serve reports an error when parsing the FrontMatter of some pages.

Step to reproduce

Hi all,

My last zola binary was v18.0 (built from source with HEAD at 8aedec9). After updating to v19.1, I'm seeing a few changes that "broke" the generation of my website (e.g. running zola serve worked previously but doesn't now).

A few of those were easy to catch, like generate_feed that became generate_feeds, and feed_filename that become feed_filenames and should now be an array (#2477).

But I'm seeing other things like:

$ zola serve
Building site...
Error: Failed to serve the site
Error: Error when parsing front matter of section `/home/vv/dev/blog/[redacted]/content/portfolio/_index.md`
Error: Reason: TOML parse error at line 2, column 1
  |
2 | path = "portfolio"
  | ^^^^
unknown field `path`, 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`

which are taking a bit more time for me to understand.

I know that in SemVer v0.* means that any breaking is technically okay, but it would still be nice to give people a way to understand how to migrate their websites to work with the latest version (I don't see anythinig like that in the changelog right now).

Do you have any ideas on what changed so that path stopped being supported ?
I used it to provide a custom url for a specific page, with https://github.com/pawroman/zola-theme-terminimal as my theme.

Thanks!

V

@Keats
Copy link
Collaborator

Keats commented Jul 4, 2024

We turned on the serde feature to disable all unknown fields.
Sections don't have a path attribute on the front-matter, only pages do.

@vvzen
Copy link
Author

vvzen commented Jul 4, 2024

Gotcha, thanks for the swift reply and for the pointer! I was able to get things up and running again after a few tweaks to my theme, and after removing all usage of path (which was probably just not doing anything anyway, I can imagine).

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

No branches or pull requests

2 participants