rendering css
This commit is contained in:
parent
0344d646f8
commit
f959140f2a
File diff suppressed because one or more lines are too long
|
@ -1,8 +1,8 @@
|
|||
{{ if eq hugo.Environment "gitea" }}
|
||||
{{ if (or (eq hugo.Environment "gitea") (eq hugo.Environment "preview") ) }}
|
||||
<link rel="stylesheet" href="/css/site.css">
|
||||
{{ else if .Site.IsServer }}
|
||||
{{ $style := resources.Get "css/site.css" | postCSS (dict "config" "./assets/css/postcss.config.js") | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
|
||||
{{ $style := resources.Get "css/site.css" | postCSS (dict "config" "./assets/css/postcss.config.js") | minify }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
{{ else }}
|
||||
{{ $flist := newScratch }}
|
||||
{{ $flist.Set "initial" "nop" }}
|
||||
|
@ -21,7 +21,7 @@
|
|||
{{ if in $css "css" }}
|
||||
<link rel="stylesheet" href="{{ "/css/" }}{{ $css }}">
|
||||
{{ else }}
|
||||
{{ $style := resources.Get "css/site.css" | postCSS (dict "config" "./assets/css/postcss.config.js") | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
|
||||
{{ $style := resources.Get "css/site.css" | postCSS (dict "config" "./assets/css/postcss.config.js") | minify }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue