Skip to content

Commit

Permalink
Books + Now
Browse files Browse the repository at this point in the history
  • Loading branch information
niclake committed Jan 10, 2025
1 parent 45c659d commit e278c9d
Show file tree
Hide file tree
Showing 13 changed files with 21,946 additions and 92 deletions.
19 changes: 18 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const dateFilters = require('./config/filters/date.js')
const postFilters = require('./config/filters/posts.js')
const fs = require('fs')
const moment = require("moment")
// const { eleventyImageTransformPlugin } = require('@11ty/eleventy-img');


module.exports = function (eleventyConfig) {
Expand Down Expand Up @@ -45,11 +46,27 @@ module.exports = function (eleventyConfig) {
plugins.forEach(plugin => {
eleventyConfig.addPlugin(require(plugin.name), { ...plugin.options })
})
// eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
// extensions: "html",
// outputDir: "/assets/images/",
// cacheOptions: {
// duration: "*",
// directory: ".cache",
// removeUrlQueryParams: false,
// },
// formats: ["webp", "jpeg"],
// widths: [300, 600, 900, 1200],
// defaultAttributes: {
// loading: "lazy",
// sizes: "100vw",
// decoding: "async",
// },
// })

// collections
Object.keys(collections).forEach(collectionName => {
eleventyConfig.addCollection(collectionName, collections[collectionName])
})
})

// Shortcodes
Object.keys(shortcodes).forEach(shortcodeName => {
Expand Down
2 changes: 1 addition & 1 deletion config/plugins.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = [
{
name: '@11ty/eleventy-navigation',
name: '@11ty/eleventy-navigation',
},
{
name: '@11ty/eleventy-plugin-rss'
Expand Down
Loading

0 comments on commit e278c9d

Please sign in to comment.