mirror of
https://github.com/Findus23/guides.git
synced 2024-09-19 16:03:51 +02:00
better hugo
This commit is contained in:
parent
7f4496db05
commit
b151b5cfce
2 changed files with 5 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
|
@ -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" . }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue