Move asciinema player to css/ and js/ directories
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>{{ .Site.Title }} {{ with .Title }}- {{ . }} {{ end }}</title>
|
<title>{{ .Site.Title }} {{ with .Title }}- {{ . }} {{ end }}</title>
|
||||||
<link rel="stylesheet" type="text/css" href="{{ "css/fonts.css" | relURL }}">
|
<link rel="stylesheet" type="text/css" href="{{ "css/fonts.css" | relURL }}" />
|
||||||
<link rel="stylesheet" type="text/css" href="{{ "css/fontawesome.css" | relURL }}">
|
<link rel="stylesheet" type="text/css" href="{{ "css/fontawesome.css" | relURL }}" />
|
||||||
<link rel="stylesheet" type="text/css" href="/asciinema/asciinema-player.css" />
|
<link rel="stylesheet" type="text/css" href="{{ "css/asciinema-player.css" | relURL }}" />
|
||||||
{{ $options := dict "transpiler" "libsass" "targetPath" "css/styles.css" -}}
|
{{ $options := dict "transpiler" "libsass" "targetPath" "css/styles.css" -}}
|
||||||
{{ $style := resources.Get "styles.scss" | toCSS $options | minify | fingerprint -}}
|
{{ $style := resources.Get "styles.scss" | toCSS $options | minify | fingerprint -}}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}">
|
<link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}">
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<script src="/asciinema/asciinema-player.min.js"></script><div id='{{ .Get "src" | replaceRE "[[:^alnum:]]" "" }}'></div>
|
<script src="{{ "js/asciinema-player.min.js" | relURL }}"></script><div id='{{ .Get "src" | replaceRE "[[:^alnum:]]" "" }}'></div>
|
||||||
<script>AsciinemaPlayer.create("{{ .Get "src" }}", document.getElementById('{{ .Get "src" | replaceRE "[[:^alnum:]]" "" }}'));</script>
|
<script>AsciinemaPlayer.create("{{ .Get "src" }}", document.getElementById('{{ .Get "src" | replaceRE "[[:^alnum:]]" "" }}'));</script>
|
||||||
|
Reference in New Issue
Block a user