Skip to content

Commit

Permalink
delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ooloth committed Aug 13, 2023
1 parent 8438de9 commit d40eb43
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,6 @@ module.exports = function (config) {
// Data extensions
config.addDataExtension('yaml', contents => yaml.load(contents));

// Extensions

// See: https://www.11ty.dev/docs/languages/custom/#aliasing-an-existing-template-language
// See: https://gist.github.com/zachleat/b274ee939759b032bc320be1a03704a2
// eleventyConfig.addExtension(['11ty.ts', '11ty.tsx'], {
// key: '11ty.js',
// });

// Filters
config.addFilter('readableDate', (date, format) => {
const dateObj = typeof date === 'string' ? new Date(date) : date;
Expand All @@ -200,16 +192,6 @@ module.exports = function (config) {
collection.some(item => item.url === page.url || (item.children || []).some(child => child.url === page.url)),
);

// Get the first `n` elements of a collection.
// config.addFilter('head', (array, n) => {
// if (!Array.isArray(array) || array.length === 0) return [];
// if (n < 0) return array.slice(n);
// return array.slice(0, n);
// });

// Return the smallest number argument
config.addFilter('min', (...numbers) => Math.min.apply(null, numbers));

// Return all the tags used in a collection
config.addFilter('getAllTags', collection => {
let tagSet = new Set();
Expand All @@ -219,24 +201,6 @@ module.exports = function (config) {
return Array.from(tagSet);
});

// config.addFilter('filterTagList', tags =>
// (tags || []).filter(tag => ['all', 'nav', 'post', 'posts'].indexOf(tag) === -1),
// );

// Customize Markdown library settings:
// config.amendLibrary('md', mdLib => {
// mdLib.use(markdownItAnchor, {
// permalink: markdownItAnchor.permalink.ariaHidden({
// placement: 'after',
// class: 'header-anchor',
// symbol: '#',
// ariaHidden: false,
// }),
// level: [1, 2, 3, 4],
// slugify: config.getFilter('slugify'),
// });
// });

// Shortcodes
config.addShortcode('image', image);

Expand Down

0 comments on commit d40eb43

Please sign in to comment.