add now to nav

This commit is contained in:
Cory Dransfeldt 2023-03-12 13:24:28 -07:00
parent 0ff72b4770
commit cdcf871a4f
No known key found for this signature in database
4 changed files with 2 additions and 9 deletions

View file

@ -41,14 +41,6 @@ module.exports = function (eleventyConfig) {
excerpt_separator: '<!-- excerpt -->',
})
// create a filter to determine duration of post
eleventyConfig.addFilter('readTime', (value) => {
const content = value
const textOnly = content.replace(/(<([^>]+)>)/gi, '')
const readingSpeedPerMin = 450
return Math.max(1, Math.floor(textOnly.length / readingSpeedPerMin))
})
// enable us to iterate over all the tags, excluding posts and all
eleventyConfig.addCollection('tagList', (collection) => {
const tagsSet = new Set()