We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6276f commit 4e62467Copy full SHA for 4e62467
assets/xml/base.tpl.xml
@@ -10,8 +10,15 @@
10
{{ if site.Params.favicon }}
11
<link rel="icon" href="{{ absLangURL "favicon.ico" }}" type="image/x-icon" />
12
{{ end }}
13
- {{ $site_css := (.Scratch.Get "css").base }}
14
- <link rel="stylesheet" href="{{ $site_css.Permalink }}" integrity="{{ $site_css.Data.Integrity }}" />
+ {{ with (.Scratch.Get "css").base }}
+ {{ if eq hugo.Environment "development" }}
15
+ <link rel="stylesheet" href="{{ .Permalink }}" />
16
+ {{ else }}
17
+ {{ with . | minify | fingerprint }}
18
+ <link rel="stylesheet" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
19
+ {{ end }}
20
21
22
</head>
23
<body>
24
<nav class="u-background">
0 commit comments