diff --git a/.eleventy.js b/.eleventy.js index a70e8680..ad88fdb6 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -7,6 +7,7 @@ const markdownItFootnote = require('markdown-it-footnote') const filters = require('./config/filters.js') const dateFilters = require('./config/dateFilters.js') const mediaFilters = require('./config/mediaFilters.js') +const now = String(Date.now()) module.exports = function (eleventyConfig) { // plugins @@ -14,6 +15,14 @@ module.exports = function (eleventyConfig) { eleventyConfig.addPlugin(heroIcons) eleventyConfig.addPlugin(pluginUnfurl) + // tailwind watches + eleventyConfig.addWatchTarget('./tailwind.config.js') + eleventyConfig.addWatchTarget('./tailwind.css') + + eleventyConfig.addShortcode('version', function () { + return now + }) + // filters Object.keys(filters).forEach((filterName) => { eleventyConfig.addLiquidFilter(filterName, filters[filterName]) diff --git a/package.json b/package.json index f130844b..c3e1c2c7 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "description": "The source for my personal site, blog and portfolio. Build using 11ty and hosted on Vercel.", "main": "index.html", "scripts": { - "start": "npx @11ty/eleventy --serve & npx tailwindcss -i ./tailwind.css -o _site/assets/styles/tailwind.css --watch", + "start": "eleventy --serve & npx tailwindcss -i ./tailwind.css -o _site/assets/styles/tailwind.css --watch", "debug": "DEBUG=Eleventy* npx @11ty/eleventy --serve & npx tailwindcss -i ./tailwind.css -o _site/assets/styles/tailwind.css --watch", "test": "echo \"Error: no test specified\" && exit 1", "lint": "eslint .", "lint:fix": "eslint . --fix", - "build": "npx @11ty/eleventy & npx tailwindcss -i ./tailwind.css -o _site/assets/styles/tailwind.css" + "build": "eleventy && npx tailwindcss -i ./tailwind.css -o _site/assets/styles/tailwind.css" }, "keywords": [], "author": "Cory Dransfeldt", diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index 341555e4..39ca47b7 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -15,9 +15,9 @@ - - - + + +