Compare commits

..

7 commits

6 changed files with 799 additions and 1724 deletions

1
.envrc
View file

@ -1 +1,2 @@
use nix use nix
layout node

View file

@ -4,5 +4,6 @@ pkgs.mkShell {
buildInputs = [ buildInputs = [
pkgs.hugo pkgs.hugo
pkgs.nodejs pkgs.nodejs
pkgs.git-crypt
]; ];
} }

View file

@ -8,7 +8,8 @@
<meta name="description" content="{{ . }}" /> <meta name="description" content="{{ . }}" />
{{ end }} {{ end }}
<title>{{ .Title }} - {{ .Site.Title }}</title> <title>{{ .Title }} - {{ .Site.Title }}</title>
{{ $twbssass := resources.Get "styles/mix-twbs.scss" | resources.ToCSS | minify | resources.PostProcess }} {{ $twbssass := resources.Get "styles/mix-twbs.scss" }}
{{ $twbssass = $twbssass | resources.ToCSS | resources.PostCSS | minify | resources.PostProcess }}
<link href="{{ $twbssass.RelPermalink }}" rel="stylesheet" /> <link href="{{ $twbssass.RelPermalink }}" rel="stylesheet" />
</head> </head>

2501
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -15,6 +15,7 @@
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.2.1", "@fortawesome/fontawesome-svg-core": "^6.2.1",
"@fortawesome/free-brands-svg-icons": "^6.2.1", "@fortawesome/free-brands-svg-icons": "^6.2.1",
"@fullhuman/postcss-purgecss": "^5.0.0",
"@openfonts/nunito-sans_all": "^1.44.2", "@openfonts/nunito-sans_all": "^1.44.2",
"@popperjs/core": "^2.11.4", "@popperjs/core": "^2.11.4",
"bootstrap": "^5.1.3", "bootstrap": "^5.1.3",
@ -24,7 +25,7 @@
"jquery-mask-plugin": "^1.14.16", "jquery-mask-plugin": "^1.14.16",
"masonry-layout": "^4.2.2", "masonry-layout": "^4.2.2",
"postcss": "^8.4.12", "postcss": "^8.4.12",
"postcss-purgecss": "^2.0.3" "postcss-cli": "^10.1.0"
}, },
"devDependencies": { "devDependencies": {
"husky": "^8.0.1", "husky": "^8.0.1",

View file

@ -1,4 +1,4 @@
const purgecss = require("postcss-purgecss")({ const purgecss = require("@fullhuman/postcss-purgecss")({
content: ["./hugo_stats.json"], content: ["./hugo_stats.json"],
defaultExtractor: (content) => { defaultExtractor: (content) => {
let els = JSON.parse(content).htmlElements; let els = JSON.parse(content).htmlElements;