diff --git a/.eleventy.js b/.eleventy.js index 577f27c..2cd5a68 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -7,7 +7,8 @@ module.exports = function (eleventyConfig) { eleventyConfig.setUseGitIgnore(false); eleventyConfig.addPassthroughCopy({ "src/img": "img", - "src/font": "font" + "src/font": "font", + "src/favicon.*": "", }); eleventyConfig.addShortcode("translatedUrl", function (currentLocale, newLocale) { return this.page.url.replace(new RegExp(`\/${currentLocale}\/`), `/${newLocale}/`); diff --git a/package.json b/package.json index f587a95..aeeb481 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,13 @@ "version": "1.0.0", "description": "website for sp-codes.de", "scripts": { - "compile-sass": "node-sass --output-style compressed --importer=node_modules/node-sass-tilde-importer src/scss/ -o dist/css/", + "compile-sass": "node-sass --output-style compressed --importer=node_modules/node-sass-tilde-importer src/scss/main.scss -o dist/css/", + "p-minify-css": "purifycss dist/css/main.css dist/**/*.html dist/**/**/*.html dist/**/**/**/*.html -i -m -o dist/css/main.css", + "minify-css": "uncss -n -H dist/ -o dist/css/main.css dist/**/*.html dist/**/**/*.html dist/**/**/**/*.html", "watch:eleventy": "eleventy --serve", - "watch:sass": "npm run compile-sass -- --watch", - "start": "npm-run-all compile-sass --parallel watch:*", - "build": "npm run compile-sass && eleventy && npm run move-index", + "watch:sass": "npm-run-all compile-sass minify-css -- --watch", + "start": "npm-run-all compile-sass minify-css --parallel watch:*", + "build": "npm run compile-sass && npm run strip-css && eleventy && npm run move-index && npm run minify-css", "move-index": "cpx dist/de/index.html dist/" }, "author": "samuel-p", @@ -24,7 +26,8 @@ "cpx": "^1.5.0", "node-sass": "^6.0.0", "node-sass-tilde-importer": "^1.0.2", - "npm-run-all": "^4.1.5" + "npm-run-all": "^4.1.5", + "uncss": "^0.17.3" }, "dependencies": { "bootstrap": "^4.6.0" diff --git a/src/_data/services.json b/src/_data/services.json index 61d9d90..f190189 100644 --- a/src/_data/services.json +++ b/src/_data/services.json @@ -88,7 +88,7 @@ }, { "id": "translate", - "name": "LibreTranslate", + "name": "Translate", "icon": "i-language", "url": "https://translate.sp-codes.de", "status": "https://translate.sp-codes.de", diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk index 470692d..6b154a2 100644 --- a/src/_includes/layouts/base.njk +++ b/src/_includes/layouts/base.njk @@ -31,8 +31,8 @@ title: sp-codes - - + + diff --git a/src/_includes/profiles.html b/src/_includes/profiles.html index 0a33f8f..eb17a7d 100644 --- a/src/_includes/profiles.html +++ b/src/_includes/profiles.html @@ -1,27 +1,27 @@