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

Reset layout data in rss.md example #1626

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crystalsolenoid
Copy link

I tried copy-pasting this example, and when I entered my output feed.xml file into the validator, I got an error:

It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

I realized that what was happening was that my data cascade was applying a layout that wrapped the XML tag in my default HTML layout.

I've changed the example .njk file to add a line in the front matter that resets any layout data from the cascade.

Another option would be to add a warning or clarification to the text, but I thought this seemed like a straightforward way to prevent future readers from making my mistake.

I tried copy-pasting this example, and when I entered my output feed.xml file into the validator, I got an error:

> It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

I realized that what was happening was that my data cascade was applying a layout that wrapped the XML tag in my default HTML layout.

I've changed the example .njk file to add a line in the front matter that resets any layout data from the cascade.

Another option would be to add a warning or clarification to the text, but I thought this seemed like a straightforward way to prevent future readers from making my mistake.
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.

1 participant