Skip to content

Commit ea247db

Browse files
committed
remove "people" tag
1 parent 2bc6a69 commit ea247db

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.eleventy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ module.exports = function(eleventyConfig) {
66

77
eleventyConfig.addPassthroughCopy("assets");
88

9+
// Collection: people (built from the directory, so the marker tag doesn't
10+
// leak into each person's research `tags`)
11+
eleventyConfig.addCollection("people", (collectionApi) =>
12+
collectionApi.getFilteredByGlob("src/people/*.md")
13+
);
14+
915
// Filter: limit array length
1016
eleventyConfig.addFilter("limit", (arr, limit) =>
1117
Array.isArray(arr) ? arr.slice(0, limit) : []

src/people/people.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"layout": "layouts/person.njk",
3-
"tags": ["people"],
43
"permalink": "/people/{{ page.fileSlug }}/"
54
}

0 commit comments

Comments
 (0)