Compare commits

...

2 Commits

Author SHA1 Message Date
Amolith 8016710fe6
try to implement cache busting 2023-01-27 10:09:28 -05:00
Amolith 5dd1d1759b
begin working on preview generation 2023-01-27 09:49:12 -05:00
2 changed files with 6 additions and 2 deletions

4
gen
View File

@ -9,3 +9,7 @@ fd --exact-depth 3 --no-ignore-vcs '.md' -x pandoc -f markdown -t epub3 --lua-fi
fd --exact-depth 3 --no-ignore-vcs '.md' -x pandoc -f markdown -t plain --lua-filter=pandoc_config/images.lua {} -o public/{/.}/{/.}.txt
rsync -avmzz public/ hel1:/var/www/secluded/
# Image generation
# wkhtmltoimage -f png --width 1200 --height 630 /tmp/file.html /tmp/file.png
# optipng -o4 file.png

View File

@ -37,8 +37,8 @@
{{ $options := (dict "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $scss := resources.Get "scss/imports.scss" }}
{{ $style := $scss | resources.ToCSS $options }}
<link rel="preload" href="{{ $style.RelPermalink }}" as="style">
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="preload" href="{{ $style.RelPermalink }}?{{ .Now.Unix }}" as="style">
<link rel="stylesheet" href="{{ $style.RelPermalink }}?{{ .Now.Unix }}">
{{ partialCached "favicons.html" . }}
</head>