File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ import { feedPlugin } from '@11ty/eleventy-plugin-rss';
22import { JSDOM } from 'jsdom' ;
33import 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-
95export 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+ ] ) ;
You can’t perform that action at this time.
0 commit comments