diff --git a/.eleventy.js b/.eleventy.js index 4f0b1cb..d32a5d3 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,6 +2,7 @@ const emojiReadTime = require("@11tyrocks/eleventy-plugin-emoji-readtime"); const pluginRss = require("@11ty/eleventy-plugin-rss"); const metagen = require('eleventy-plugin-metagen'); const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); +const pluginPlausible = require('eleventy-plugin-plausible'); module.exports = function(eleventyConfig) { eleventyConfig.addPassthroughCopy("./content/images"); @@ -9,6 +10,9 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(metagen); eleventyConfig.addPlugin(syntaxHighlight); + eleventyConfig.addPlugin(pluginPlausible, { + domain: 'gaiety.life' + }); eleventyConfig.addCollection("posts", function(collection) { return collection.getFilteredByGlob("content/posts/**/*.md"); diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index aca3b46..8b0a976 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -134,6 +134,9 @@ }, "active": "43acf14268817221", "lastOpenFiles": [ + "node_modules/eleventy-plugin-plausible/package.json", + "node_modules/eleventy-plugin-plausible/README.md", + "node_modules/eleventy-plugin-plausible", "images/Screenshot.md", "content/tils/kagi_small_web.md", "images", @@ -154,7 +157,6 @@ "_site/til.xml", "_site/tils/always_generated_ecto_boolean/index.html", "_site/tils/pdf_obsidian_at_page/index.html", - "_site/tils/always_generated_ecto_boolean", "_site/images/til-pdf-page.png", "content/tils/asdf_direnv.md", "node_modules/@11ty/eleventy-plugin-syntaxhighlight/README.md", @@ -175,8 +177,6 @@ "node_modules/minimist/README.md", "node_modules/minimist/CHANGELOG.md", "node_modules/@11ty/lodash-custom/README.md", - "node_modules/slugify/CHANGELOG.md", - "node_modules/markdown-it/node_modules/entities/readme.md", "_site/images/ultimate-dungeon-terrain-3.jpg", "_site/images/ultimate-dungeon-terrain-2.jpg", "_site/images/ultimate-dungeon-terrain-1.jpg" diff --git a/_includes/indexlayout.njk b/_includes/indexlayout.njk index 4ef40e7..89d79f1 100644 --- a/_includes/indexlayout.njk +++ b/_includes/indexlayout.njk @@ -6,6 +6,8 @@ pagination: reverse: true --- +{% plausible %} + {% extends "baselayout.njk" %} {% block main %} diff --git a/_includes/tilindexlayout.njk b/_includes/tilindexlayout.njk index f576f4c..d4bc641 100644 --- a/_includes/tilindexlayout.njk +++ b/_includes/tilindexlayout.njk @@ -1,3 +1,5 @@ +{% plausible %} + {% extends "baselayout.njk" %} {% block main %} diff --git a/package-lock.json b/package-lock.json index 7c56d01..9e01953 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@tailwindcss/typography": "^0.5.0", "concurrently": "^7.0.0", "eleventy-plugin-metagen": "^1.5.2", + "eleventy-plugin-plausible": "^1.1.0", "postcss": "^8.4.5", "tailwindcss": "^3.0.12" } @@ -1959,6 +1960,12 @@ "node": ">=8" } }, + "node_modules/eleventy-plugin-plausible": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/eleventy-plugin-plausible/-/eleventy-plugin-plausible-1.1.0.tgz", + "integrity": "sha512-6zVqKldyvCJ1G0cgBgqIj94XbRQ/orZAPl8UYSWglyqt4scaKh5uTvDFflxaVXn0FoHs3XIAnTyDBCJ4ITFyuw==", + "dev": true + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -7212,6 +7219,12 @@ } } }, + "eleventy-plugin-plausible": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/eleventy-plugin-plausible/-/eleventy-plugin-plausible-1.1.0.tgz", + "integrity": "sha512-6zVqKldyvCJ1G0cgBgqIj94XbRQ/orZAPl8UYSWglyqt4scaKh5uTvDFflxaVXn0FoHs3XIAnTyDBCJ4ITFyuw==", + "dev": true + }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", diff --git a/package.json b/package.json index 532821e..30f4f9b 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@tailwindcss/typography": "^0.5.0", "concurrently": "^7.0.0", "eleventy-plugin-metagen": "^1.5.2", + "eleventy-plugin-plausible": "^1.1.0", "postcss": "^8.4.5", "tailwindcss": "^3.0.12" }