Created
November 29, 2020 16:46
-
-
Save scottpdawson/7a43edc30814aa251a206cd0a6b92494 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eleventyConfig.addCollection("events", (collection) => | |
collection.getFilteredByGlob("posts/*.md").filter( post => { | |
return ( item.data.location ? post : false ); | |
}) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment