1
0
Fork 0
mirror of https://github.com/Findus23/guides.git synced 2024-09-19 16:03:51 +02:00

better hugo

This commit is contained in:
Lukas Winkler 2022-09-18 23:25:25 +01:00
parent 7f4496db05
commit b151b5cfce
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 5 additions and 2 deletions

View file

@ -2,8 +2,10 @@ server:
./hugo server -D
build:
rm -fr public/
rm -fr public.bak/
mv public public.bak
./hugo
diff -r public.bak public || true
publish:
rsync -aP public/ lw1.at:/var/www/guides/ --delete

View file

@ -12,7 +12,8 @@
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
{{- $sassOptions := (dict "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $sassOptions | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
{{ partial "matomo.html" . }}