make casts local

This commit is contained in:
Balakrishnan Balasubramanian 2025-05-25 02:27:36 -04:00
parent f1793eca54
commit 55ab032dbf

View File

@ -3,7 +3,7 @@
<script src="{{ .RelPermalink }}"></script> <script src="{{ .RelPermalink }}"></script>
{{ end }} {{ end }}
<script> <script>
AsciinemaPlayer.create('/casts/{{ .Get "key" }}.cast', document.getElementById('{{ .Get "key" }}'), { AsciinemaPlayer.create('casts/{{ .Get "key" }}.cast', document.getElementById('{{ .Get "key" }}'), {
{{ if .Get "cols" }}cols: "{{ .Get "cols" }}",{{ end }} {{ if .Get "cols" }}cols: "{{ .Get "cols" }}",{{ end }}
{{ if .Get "rows" }}rows: "{{ .Get "rows" }}",{{ end }} {{ if .Get "rows" }}rows: "{{ .Get "rows" }}",{{ end }}
{{ if .Get "autoPlay" }}autoPlay: "{{ .Get "autoPlay" }}",{{ end }} {{ if .Get "autoPlay" }}autoPlay: "{{ .Get "autoPlay" }}",{{ end }}