slow structuring
This commit is contained in:
@ -1,10 +1,57 @@
|
||||
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
|
||||
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||
|
||||
export default async function(eleventyConfig) {
|
||||
/* Passthroughs */
|
||||
eleventyConfig.addPassthroughCopy({"css": "assets/css"});
|
||||
|
||||
/* Plugins */
|
||||
/* RSS */
|
||||
eleventyConfig.addPlugin(feedPlugin, {
|
||||
type: "atom", // or "rss", "json"
|
||||
outputPath: "/feed.xml",
|
||||
collection: {
|
||||
name: "posts", // iterate over `collections.posts`
|
||||
limit: 10, // 0 means no limit
|
||||
},
|
||||
metadata: {
|
||||
language: "en",
|
||||
title: "hello hello",
|
||||
subtitle: "Lee Cattarin... on the internet!",
|
||||
base: "https://leecat.art",
|
||||
author: {
|
||||
name: "Lee Cattarin",
|
||||
email: "lee.cattarin@gmail.com",
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* Images */
|
||||
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
|
||||
// output image formats
|
||||
formats: ["auto"],
|
||||
|
||||
// output image widths
|
||||
widths: [800],
|
||||
|
||||
// optional, attributes assigned on <img> nodes override these values
|
||||
htmlOptions: {
|
||||
imgAttributes: {
|
||||
loading: "lazy",
|
||||
decoding: "async",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
/* Watch when serving */
|
||||
eleventyConfig.addWatchTarget("css");
|
||||
};
|
||||
|
||||
export const config = {
|
||||
dir: {
|
||||
input: "src"
|
||||
input: "src",
|
||||
includes: "../_includes",
|
||||
data: "../_data"
|
||||
},
|
||||
markdownTemplateEngine: "njk",
|
||||
htmlTemplateEngine: "njk",
|
||||
|
||||
Reference in New Issue
Block a user