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

Commits on Oct 20, 2023

  1. Reset layout data in rss.md example

    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.
    crystalsolenoid committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    7267723 View commit details
    Browse the repository at this point in the history