Skip to content

Commit ab8198f

Browse files
committed
move the tags to the end of the config file
1 parent 2311ec9 commit ab8198f

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

eleventy.config.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { feedPlugin } from '@11ty/eleventy-plugin-rss';
22
import { JSDOM } from 'jsdom';
33
import slugify from '@sindresorhus/slugify';
44

5-
function setEquals(a, b) {
6-
return a === b || (a.size === b.size && [...a].every((it => b.has(it))));
7-
}
8-
95
export default function (eleventyConfig) {
106
// Global data
117
eleventyConfig.addGlobalData('windowTitle', 'cberes');
@@ -15,8 +11,6 @@ export default function (eleventyConfig) {
1511
eleventyConfig.addPassthroughCopy({assets: '/'});
1612
eleventyConfig.addPassthroughCopy('articles/**/*.png');
1713

18-
const knownTags = new Set(['skateboarding', 'software', 'attention']);
19-
2014
// Collections
2115
eleventyConfig.addCollection('tagsList', collectionApi => {
2216
const tags = collectionApi.getAll()
@@ -81,3 +75,13 @@ export default function (eleventyConfig) {
8175
return array.slice(0, count);
8276
});
8377
};
78+
79+
function setEquals(a, b) {
80+
return a === b || (a.size === b.size && [...a].every((it => b.has(it))));
81+
}
82+
83+
const knownTags = new Set([
84+
'skateboarding',
85+
'software',
86+
'attention',
87+
]);

0 commit comments

Comments
 (0)