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,12 +48,9 @@
|
||||
|
||||
{{ range resources.Match "style/*.scss" }}
|
||||
{{ with . | toCSS }}
|
||||
{{ if hugo.IsDevelopment }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{ else -}}
|
||||
{{ with . | minify | fingerprint }}
|
||||
{{ with cond hugo.IsDevelopment . (. | minify | fingerprint) }}
|
||||
<link rel="preload" href="{{ .RelPermalink }}" as="style">
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user