build tweaks
This commit is contained in:
parent
8518fcddc8
commit
e4303248ba
3 changed files with 14 additions and 5 deletions
|
@ -7,6 +7,7 @@ const markdownItFootnote = require('markdown-it-footnote')
|
||||||
const filters = require('./config/filters.js')
|
const filters = require('./config/filters.js')
|
||||||
const dateFilters = require('./config/dateFilters.js')
|
const dateFilters = require('./config/dateFilters.js')
|
||||||
const mediaFilters = require('./config/mediaFilters.js')
|
const mediaFilters = require('./config/mediaFilters.js')
|
||||||
|
const now = String(Date.now())
|
||||||
|
|
||||||
module.exports = function (eleventyConfig) {
|
module.exports = function (eleventyConfig) {
|
||||||
// plugins
|
// plugins
|
||||||
|
@ -14,6 +15,14 @@ module.exports = function (eleventyConfig) {
|
||||||
eleventyConfig.addPlugin(heroIcons)
|
eleventyConfig.addPlugin(heroIcons)
|
||||||
eleventyConfig.addPlugin(pluginUnfurl)
|
eleventyConfig.addPlugin(pluginUnfurl)
|
||||||
|
|
||||||
|
// tailwind watches
|
||||||
|
eleventyConfig.addWatchTarget('./tailwind.config.js')
|
||||||
|
eleventyConfig.addWatchTarget('./tailwind.css')
|
||||||
|
|
||||||
|
eleventyConfig.addShortcode('version', function () {
|
||||||
|
return now
|
||||||
|
})
|
||||||
|
|
||||||
// filters
|
// filters
|
||||||
Object.keys(filters).forEach((filterName) => {
|
Object.keys(filters).forEach((filterName) => {
|
||||||
eleventyConfig.addLiquidFilter(filterName, filters[filterName])
|
eleventyConfig.addLiquidFilter(filterName, filters[filterName])
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
"description": "The source for my personal site, blog and portfolio. Build using 11ty and hosted on Vercel.",
|
"description": "The source for my personal site, blog and portfolio. Build using 11ty and hosted on Vercel.",
|
||||||
"main": "index.html",
|
"main": "index.html",
|
||||||
"scripts": {
|
"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",
|
"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",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint . --fix",
|
"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": [],
|
"keywords": [],
|
||||||
"author": "Cory Dransfeldt",
|
"author": "Cory Dransfeldt",
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon/favicon-32x32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon/favicon-32x32.png">
|
||||||
<link rel="apple-touch-icon" href="/assets/img/favicon/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="/assets/img/favicon/apple-touch-icon.png">
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="manifest" href="/manifest.json" />
|
||||||
<link href="/assets/styles/tailwind.css" rel="stylesheet" />
|
<link href="/assets/styles/tailwind.css?v={% version %}" rel="stylesheet" />
|
||||||
<link href="/assets/styles/prism.css" rel="stylesheet" />
|
<link href="/assets/styles/prism.css?v={% version %}" rel="stylesheet" />
|
||||||
<link href="/assets/styles/index.css" rel="stylesheet" />
|
<link href="/assets/styles/index.css?v={% version %}" rel="stylesheet" />
|
||||||
<script src="https://breezy-restored.coryd.dev/script.js" data-site="RHNGSUXO" defer></script>
|
<script src="https://breezy-restored.coryd.dev/script.js" data-site="RHNGSUXO" defer></script>
|
||||||
<link rel="webmention" href="https://webmention.io/coryd.dev/webmention" />
|
<link rel="webmention" href="https://webmention.io/coryd.dev/webmention" />
|
||||||
<link rel="pingback" href="https://webmention.io/coryd.dev/xmlrpc" />
|
<link rel="pingback" href="https://webmention.io/coryd.dev/xmlrpc" />
|
||||||
|
|
Reference in a new issue