Replies: 1 comment
-
The // docs.tmpl.js
export default function * ({ docData }) {
for (const doc of docData) {
yield {
url: `docs/${doc.title}.md`,
content: doc.content,
templateEngine: "njk"
}
}
} I'm thinking of allowing to render the layout for non-html pages only if the layout is defined directly in the page data (not inherited from a _data files). |
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
-
I need to create several similar non-html files based on
docData
. I thought about using layouts for this, but it is not possible.How can I manually call render the template engine I need to render content directly without layouts?
Beta Was this translation helpful? Give feedback.
All reactions