Tentative d'amélioration du clignotement au chargement de la page.
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -48,15 +48,12 @@
|
|||||||
|
|
||||||
{{ range resources.Match "style/*.scss" }}
|
{{ range resources.Match "style/*.scss" }}
|
||||||
{{ with . | toCSS }}
|
{{ with . | toCSS }}
|
||||||
{{ if hugo.IsDevelopment }}
|
{{ with cond hugo.IsDevelopment . (. | minify | fingerprint) }}
|
||||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
<link rel="preload" href="{{ .RelPermalink }}" as="style">
|
||||||
{{ else -}}
|
|
||||||
{{ with . | minify | fingerprint }}
|
|
||||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
|
<title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
|
||||||
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
||||||
|
|||||||
Reference in New Issue
Block a user