Skip to content

Commit 8f4eb60

Browse files
Add support for dated posts (#22)
* Support for dated posts * Remove log * Move example post * Add support for nested folders
1 parent 3287880 commit 8f4eb60

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed

app/images/manage-screening-events/example-post/01-design-history-index.png renamed to app/images/manage-screening-events/2024/12/example-post/01-design-history-index.png

File renamed without changes.

app/images/manage-screening-events/example-post/02-search-results.png renamed to app/images/manage-screening-events/2024/12/example-post/02-search-results.png

File renamed without changes.

app/images/manage-screening-events/example-post/03-a-design-history-post.png renamed to app/images/manage-screening-events/2024/12/example-post/03-a-design-history-post.png

File renamed without changes.
File renamed without changes.

app/posts/manage-screening-events/2019-12-31-example-post.md renamed to app/posts/manage-screening-events/2024/12/2019-12-31-example-post.md

File renamed without changes.

eleventy.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ module.exports = function (eleventyConfig) {
3737
eleventyConfig.addPassthroughCopy({ './app/images': '.' })
3838

3939
eleventyConfig.addCollection('explore-team', collection => {
40-
return collection.getFilteredByGlob('app/posts/explore-team/*.md')
40+
return collection.getFilteredByGlob('app/posts/explore-team/**/*.md')
4141
})
4242

4343
eleventyConfig.addCollection('manage-screening-events', collection => {
44-
return collection.getFilteredByGlob('app/posts/manage-screening-events/*.md')
44+
return collection.getFilteredByGlob('app/posts/manage-screening-events/**/*.md')
4545
})
4646

4747
eleventyConfig.addCollection('bowel-screening', collection => {
48-
return collection.getFilteredByGlob('app/posts/bowel-screening/*.md')
48+
return collection.getFilteredByGlob('app/posts/bowel-screening/**/*.md')
4949
})
5050

5151
// Config

0 commit comments

Comments
 (0)