summaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-03 01:11:40 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-03 01:11:40 +0200
commit054635bd3d4c85ba5bf1645da584aa6c89973278 (patch)
tree462033f5e1731c4b36b4b226b7a07da6c7119889 /layouts/partials
parent5266cb661abb145cf18d8bc68d8774dff24008e6 (diff)
downloadgohugo-theme-ed-054635bd3d4c85ba5bf1645da584aa6c89973278.tar.gz
Use prmalink for styles
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/styles.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html
index 32513eb..470c476 100644
--- a/layouts/partials/styles.html
+++ b/layouts/partials/styles.html
@@ -12,7 +12,7 @@
{{- if not site.Params.assets.disable_fingerprinting -}}
{{- $stylesheet := $stylesheet | fingerprint }}
- {{ printf `<link crossorigin="anonymous" href="%s" integrity="%s" rel="preload stylesheet" as="style">` $stylesheet.RelPermalink $stylesheet.Data.Integrity | safeHTML }}
+ {{ printf `<link crossorigin="anonymous" href="%s" integrity="%s" rel="preload stylesheet" as="style">` $stylesheet.Permalink $stylesheet.Data.Integrity | safeHTML }}
{{- else }}
- <link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" rel="preload stylesheet" as="style">
+ <link crossorigin="anonymous" href="{{ $stylesheet.Permalink }}" rel="preload stylesheet" as="style">
{{- end }}