Replies: 1 comment
-
I ran into this issue today so I created an integration that enables |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Summary
It should be possible to pre-render Markdown pages on an otherwise server-rendered website.
Background & Motivation
Markdown pages (
.md
files in thepages
directory) do not currently have a yaml-based way to flag them as pre-renderable.Considering that the
server
output mode disables pre-rendering by default and theexport const prerender = true;
statement in Astro files allows overriding it, it would make sense to support an equivalentprerender: true
override setting in the YAML front-matter.There is a precedent in providing an override flag for pages, as mentioned above for Astro files.
There is also a precedent in providing Astro-specific YAML front matter keys, as done with the (unrelated)
layout: ...
property in Markdown files.Goals
Example
Beta Was this translation helpful? Give feedback.
All reactions