use alias for minify and fingerprint
This commit is contained in:
parent
b662b3ddc0
commit
2060a81f1a
@ -10,7 +10,7 @@
|
|||||||
<!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
|
<!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
|
||||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||||
{{ if .Params.asciinema }}
|
{{ if .Params.asciinema }}
|
||||||
{{ with resources.Get "vendor/asciinema/asciinema-player.css" | resources.Minify | resources.Fingerprint }}
|
{{ with resources.Get "vendor/asciinema/asciinema-player.css" | minify | fingerprint }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .RelPermalink }}" />
|
<link rel="stylesheet" type="text/css" href="{{ .RelPermalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -21,7 +21,7 @@
|
|||||||
<link rel="stylesheet" href="{{ "css/styles.css" | relURL }}">
|
<link rel="stylesheet" href="{{ "css/styles.css" | relURL }}">
|
||||||
<link id="theme_css" rel="stylesheet" href="{{ "css/themes" | relURL }}/{{ .Site.Params.ThemeStyle | default $themeStyleDefault }}">
|
<link id="theme_css" rel="stylesheet" href="{{ "css/themes" | relURL }}/{{ .Site.Params.ThemeStyle | default $themeStyleDefault }}">
|
||||||
{{- if .Site.Params.ThemeStyleSwitcher }}
|
{{- if .Site.Params.ThemeStyleSwitcher }}
|
||||||
{{ with resources.Get "js/theme-switcher.js" | resources.Minify | resources.Fingerprint }}
|
{{ with resources.Get "js/theme-switcher.js" | minify | fingerprint }}
|
||||||
<script src="{{ .RelPermalink }}"></script>
|
<script src="{{ .RelPermalink }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div id='{{ with .Get "key" }}{{ . }}{{ end }}'></div>
|
<div id='{{ with .Get "key" }}{{ . }}{{ end }}'></div>
|
||||||
{{ with resources.Get "vendor/asciinema/asciinema-player.min.js" | resources.Fingerprint }}
|
{{ with resources.Get "vendor/asciinema/asciinema-player.min.js" | fingerprint }}
|
||||||
<script src="{{ .RelPermalink }}"></script>
|
<script src="{{ .RelPermalink }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user