mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
use RelPermalink instead of Permalink
This commit is contained in:
parent
6abff093cc
commit
a8aa6e7ecc
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
{{ range (slice $base_styles_opts $custom_styles_opts) }}
|
{{ range (slice $base_styles_opts $custom_styles_opts) }}
|
||||||
{{ $style := resources.Get .src | resources.ExecuteAsTemplate .dest $current_page | toCSS | minify | fingerprint }}
|
{{ $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 }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .AlternativeOutputFormats }}
|
{{ range .AlternativeOutputFormats }}
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
{{ block "footer" . }} {{ end }}
|
{{ block "footer" . }} {{ end }}
|
||||||
|
|
||||||
{{ $script := resources.Get "js/index.js" | minify | fingerprint }}
|
{{ $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 }}
|
{{ block "scripts" . }} {{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user