From 5175c2a9bd91a558a87523bdcd0b116c161e73d0 Mon Sep 17 00:00:00 2001 From: Matt DeCamp Date: Sun, 5 Sep 2021 15:30:48 -0400 Subject: [PATCH] add aliases; comment edits; --- .eleventy.js | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index b7ca593..674c2f3 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,15 +1,14 @@ -const { DateTime } = require('luxon'); +const { DateTime } = require("luxon"); const pluginRss = require("@11ty/eleventy-plugin-rss"); module.exports = function (config) { - // Passthrough copy + // PASSTHROUGHS - // Layouts // - config.addLayoutAlias("base", "base.njk"); - config.addLayoutAlias("post", "post.njk"); - config.addLayoutAlias("page", "page.njk"); + // LAYOUTS // + config.addLayoutAlias("base", "layouts/base.njk"); + config.addLayoutAlias("post", "layouts/post.njk"); - // Transforms // + // TRANSFORMS // // Minify HTML const htmlMinTransform = require("./src/transforms/html-min.js"); const isProduction = process.env.ELEVENTY_ENV === "production"; @@ -18,10 +17,17 @@ module.exports = function (config) { config.addTransform("htmlmin", htmlMinTransform); } - // Plug-Ins // + // PLUG-INS // config.addPlugin(pluginRss); + + // EXTRAS // + // Post List Excerpts + config.setFrontMatterParsingOptions({ + excerpt: true, + excerpt_separator: "", + }); - // Base confirguration // + // BASE CONFIGURATION // return { dir: { input: "src",