feat: feed/search/sitemap

This commit is contained in:
Cory Dransfeldt 2024-10-11 19:10:20 -07:00
parent 086cd20788
commit c6d00b2836
No known key found for this signature in database
34 changed files with 198 additions and 535 deletions

View file

@ -9,7 +9,7 @@ import markdownItPrism from 'markdown-it-prism'
import syntaxHighlight from '@11ty/eleventy-plugin-syntaxhighlight'
import tablerIcons from '@cdransf/eleventy-plugin-tabler-icons'
import { copyErrorPages, minifyJsComponents } from './config/events/index.js'
import { processContent, albumReleasesCalendar } from './config/collections/index.js'
import { albumReleasesCalendar } from './config/collections/index.js'
import { cssConfig } from './config/plugins/css-config.js'
// load .env
@ -52,18 +52,6 @@ export default async function (eleventyConfig) {
'node_modules/youtube-video-element/youtube-video-element.js': 'assets/scripts/components/youtube-video-element.js'
})
eleventyConfig.addCollection('allContent', (collection) => {
const { allContent } = processContent(collection)
return allContent
})
eleventyConfig.addCollection('searchIndex', (collection) => {
const { searchIndex } = processContent(collection)
return searchIndex
})
eleventyConfig.addCollection('siteMap', (collection) => {
const { siteMap } = processContent(collection)
return siteMap
})
eleventyConfig.addCollection('albumReleasesCalendar', albumReleasesCalendar)
const md = markdownIt({ html: true, linkify: true })