-
I probably don’t see the forest for the trees, but what’s the easiest way to create an “alias” for Background: I use Am I missing something obvious, is something planned, or is there an elegant way to map names? |
Beta Was this translation helpful? Give feedback.
Answered by
daflh
Aug 25, 2021
Replies: 1 comment 3 replies
-
You can use Computed Data inside your posts directory like this: // ./posts/posts.11tydata.js
module.exports = {
eleventyComputed: {
eleventyExcludeFromCollections: data => (data.eleventyExcludeFromCollections || data.hidden)
}
}; |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
j9t
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use Computed Data inside your posts directory like this: