diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-05 12:42:44 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-05 12:42:44 -0700 |
| commit | 94b912b649150b9863a62096ba4740b2cc8ad21a (patch) | |
| tree | 1882236fc980fa5946d3089a2f2e4670f3a70580 /eleventy.config.js | |
| parent | ab0ddcaeb1fc37351d14b89100e07d3a343ba9e1 (diff) | |
| download | lizdotcoffee-94b912b649150b9863a62096ba4740b2cc8ad21a.tar.gz lizdotcoffee-94b912b649150b9863a62096ba4740b2cc8ad21a.zip | |
Factor
Diffstat (limited to 'eleventy.config.js')
| -rw-r--r-- | eleventy.config.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/eleventy.config.js b/eleventy.config.js deleted file mode 100644 index a12047a..0000000 --- a/eleventy.config.js +++ /dev/null @@ -1,40 +0,0 @@ -import pluginRss from "@11ty/eleventy-plugin-rss"; -import markdownIt from "markdown-it"; -import { outdent } from "outdent"; - -export default function(eleventyConfig) { - eleventyConfig.addPlugin(pluginRss); - - eleventyConfig.addPassthroughCopy("src/assets"); - eleventyConfig.addPassthroughCopy("src/toys"); - - // Configure markdown-it - const md = markdownIt({ - html: true, - breaks: false, - linkify: true - }); - - eleventyConfig.setLibrary("md", md); - - // Add markdown shortcode - eleventyConfig.addPairedShortcode("markdown", (content) => { - return md.render(outdent`${content}`); - }); - - // Add posts collection - eleventyConfig.addCollection("posts", (collectionApi) => { - return collectionApi.getFilteredByGlob("src/posts/**/*.md"); - }); - - return { - dir: { - input: "src", - output: "_site", - includes: "_includes", - layouts: "_layouts" - }, - markdownTemplateEngine: "njk", - htmlTemplateEngine: "njk" - }; -} |
