www.byjp.me/layouts/partials/javascript.html
JP Hastings-Spital e9d7dbfbdc Adds podcast page
The podcast XML feed doesn't exist yet, but at least the page does now!
2025-01-31 17:39:30 +00:00

14 lines
650 B
HTML

{{ $main := resources.Get "js/main.js" -}}
{{- $menu := resources.Get "js/menu.js" -}}
{{- $prism := resources.Get "js/prism.js" -}}
{{- $secureJS := slice $main $menu $prism | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{- if in .Params.Tags "podcast" -}}
<script type="text/javascript" src="/js/shikwasa.js"></script>
<link rel="stylesheet" rev="stylesheet" href="/css/shikwasa.css" media="screen">
{{- end -}}
{{- if .Param "math" -}}
{{ partialCached "math.html" . }}
{{ end }}