cleanup + tweaks

This commit is contained in:
Cory Dransfeldt 2023-03-13 15:29:59 -07:00
parent fd0a622127
commit 9e49528d86
No known key found for this signature in database
4 changed files with 3 additions and 32 deletions

View file

@ -41,10 +41,6 @@ module.exports = function (eleventyConfig) {
// enable merging of tags
eleventyConfig.setDataDeepMerge(true)
// copy these static files to _site folder
eleventyConfig.addPassthroughCopy('src/assets')
eleventyConfig.addPassthroughCopy('src/manifest.json')
// create excerpts
eleventyConfig.setFrontMatterParsingOptions({
excerpt: true,
@ -84,6 +80,8 @@ module.exports = function (eleventyConfig) {
passthroughFileCopy: true,
dir: {
input: 'src',
includes: '_includes',
data: '_data',
output: '_site',
},
}

View file

@ -9,7 +9,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"build": "eleventy && npx tailwindcss -i ./tailwind.css -o _site/assets/styles/tailwind.css"
"build": "ELEVENTY_PRODUCTION=true eleventy && NODE_ENV=production npx tailwindcss -i ./tailwind.css -c ./tailwind.config.js -o _site/assets/styles/tailwind.css"
},
"keywords": [],
"author": "Cory Dransfeldt",

View file

@ -14,7 +14,6 @@
<link rel="icon" type="image/x-icon" href="/assets/img/favicon/favicon-16x16.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="manifest" href="/manifest.json" />
<link href="/assets/styles/tailwind.css?v={% version %}" rel="stylesheet" />
<link href="/assets/styles/prism.css?v={% version %}" rel="stylesheet" />
<link href="/assets/styles/index.css?v={% version %}" rel="stylesheet" />

View file

@ -1,26 +0,0 @@
{
"name": "Cory Dransfeldt",
"short_name": "coryd.dev",
"icons": [
{
"src": "/assets/img/favicon/favicon-32x32.png",
"sizes": "32x32",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "/assets/img/favicon/favicon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/assets/img/favicon/favicon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#bd93f9",
"background_color": "#fff",
"display": "standalone",
"start_url": "/"
}