You've already forked no-js-hugo-theme
refactor asciinema
This commit is contained in:
@ -1,7 +1,4 @@
|
||||
<div id='{{ .Get "key" }}'></div>
|
||||
{{ with resources.Get "vendor/asciinema/asciinema-player.min.js" | fingerprint }}
|
||||
<script src="{{ .RelPermalink }}"></script>
|
||||
{{ end }}
|
||||
<script>
|
||||
AsciinemaPlayer.create('casts/{{ .Get "key" }}.cast', document.getElementById('{{ .Get "key" }}'), {
|
||||
{{ if .Get "cols" }}cols: "{{ .Get "cols" }}",{{ end }}
|
||||
|
Reference in New Issue
Block a user