diff options
| author | Kevin Morgan <kevinm416@gmail.com> | 2018-12-26 16:18:55 -0800 |
|---|---|---|
| committer | Kevin Morgan <kevinm416@gmail.com> | 2018-12-26 16:18:55 -0800 |
| commit | 512d6ca9f236140830042e6e8584221290c9ee0b (patch) | |
| tree | cd97e36b18da2db594e7693b01eaf4853483b632 | |
| parent | 36fc9820cbe60c539b3d9abad1efe667affb32ac (diff) | |
Fixed usage of RelPermalink in baseof.html
When the static site is built, js and css import fails
with RelPermalink.
| -rw-r--r-- | layouts/_default/baseof.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 66ddb80..906c32a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -20,7 +20,7 @@ {{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}} - <link rel="stylesheet" href="{{ $style.RelPermalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }}> + <link rel="stylesheet" href="{{ $style.Permalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }}> {{ block "head" . -}}{{- end }} </head> @@ -29,7 +29,7 @@ {{ block "main" . -}}{{ end -}} {{ block "footer" . -}}{{ end }} {{ $script := resources.Get "js/main.js" | minify | fingerprint -}} - <script src="{{ $script.RelPermalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }}></script> + <script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }}></script> {{ template "_internal/google_analytics_async.html" . }} </body> |
