Skip to content

Commit

Permalink
Merge pull request #36 from kentnek/kent-fix-resources-links
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewies authored Jun 22, 2020
2 parents 6fe776b + 24806d1 commit 2efa75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

{{ range (slice $base_styles_opts $custom_styles_opts) }}
{{ $style := resources.Get .src | resources.ExecuteAsTemplate .dest $current_page | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}"/>
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}"/>
{{ end }}

{{ range .AlternativeOutputFormats }}
Expand All @@ -58,7 +58,7 @@
{{ block "footer" . }} {{ end }}

{{ $script := resources.Get "js/index.js" | minify | fingerprint }}
<script src="{{ $script.Permalink }}" integrity="{{ $script.Data.Integrity | safeHTMLAttr }}" crossorigin="anonymous"></script>
<script src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity | safeHTMLAttr }}" crossorigin="anonymous"></script>
{{ block "scripts" . }} {{ end }}
</body>

Expand Down

0 comments on commit 2efa75b

Please sign in to comment.