Re-do a bunch of the styles for the Nethack page

This commit is contained in:
Eryn Wells 2022-11-20 12:24:14 -08:00
parent 9e11021ae3
commit 5606feeca1
6 changed files with 38 additions and 28 deletions

View file

@ -2,6 +2,13 @@
{{ partial "single_main.html" . }}
{{ end }}
{{ define "styles" }}
{{- range .Resources.Match "*.css" -}}
{{- $stylesheet := . | fingerprint "md5" }}
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}"></script>
{{- end -}}
{{ end }}
{{ define "scripts" }}
{{- if .HasShortcode "figures/railroad" -}}
{{- with partial "resources/railroad_utils.html" . -}}
@ -11,10 +18,10 @@
{{- if .HasShortcode "figures/p5" -}}
{{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}}
<script defer src="{{ .Secure.Permalink }}"></script>
<script defer src="{{ .Secure.RelPermalink }}"></script>
{{- end -}}
{{- with partial "secure_asset.html" "scripts/sketch-utils.js" -}}
<script defer src="{{ .Secure.Permalink }}"></script>
<script defer src="{{ .Secure.RelPermalink }}"></script>
{{- end -}}
{{- end -}}