use alias for minify and fingerprint

This commit is contained in:
Balakrishnan Balasubramanian 2025-05-19 23:26:11 -04:00
parent b662b3ddc0
commit 2060a81f1a
2 changed files with 3 additions and 3 deletions

View File

@ -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 }}

View File

@ -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>