You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a default layout, there should be a way to define "no layout".
Reference-level explanation
We're using a default global layout with the following configuration:
-
scope:
path: ""values:
layout: "default"
That's great because it eliminates the need to define the same layout everywhere. But there are some edge cases where no layout is required at all. For example, an RSS feed or a sitemap. We now have two workarounds. One is a layout called feed.liquid with just the following contents:
{{ content }}
Another is to have layout: false in the front matter. Although, the latter adds the following warning to the logs:
[Bridgetown] Build Warning: Layout 'false' requested in sitemap.xml does not exist.
So it's a hack, really.
Solution
Both options work, but allowing to configure layout: false in the front matter solves the issue.
The text was updated successfully, but these errors were encountered:
Summary
When using a default layout, there should be a way to define "no layout".
Reference-level explanation
We're using a default global layout with the following configuration:
That's great because it eliminates the need to define the same layout everywhere. But there are some edge cases where no layout is required at all. For example, an RSS feed or a sitemap. We now have two workarounds. One is a layout called
feed.liquid
with just the following contents:{{ content }}
Another is to have
layout: false
in the front matter. Although, the latter adds the following warning to the logs:So it's a hack, really.
Solution
Both options work, but allowing to configure
layout: false
in the front matter solves the issue.The text was updated successfully, but these errors were encountered: