Add asciinema shortcode
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:
@ -3,15 +3,16 @@
|
||||
<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/fontawesome.css" | relURL }}">
|
||||
{{ $options := dict "transpiler" "libsass" "targetPath" "css/styles.css" }}
|
||||
{{ $style := resources.Get "styles.scss" | toCSS $options | minify | fingerprint }}
|
||||
<link rel="stylesheet" type="text/css" href="/asciinema/asciinema-player.css" />
|
||||
{{ $options := dict "transpiler" "libsass" "targetPath" "css/styles.css" -}}
|
||||
{{ $style := resources.Get "styles.scss" | toCSS $options | minify | fingerprint -}}
|
||||
<link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}">
|
||||
{{ with resources.Get "css/userstyles.css" }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}">
|
||||
{{ end }}
|
||||
{{ with .Site.Params.favicon }}
|
||||
{{ end -}}
|
||||
{{ with .Site.Params.favicon -}}
|
||||
<link rel="icon" href="{{ . | relURL }}">
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
<meta charset="UTF-8">
|
||||
<meta name="author" content="{{ .Site.Params.Author }}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
@ -0,0 +1,2 @@
|
||||
<script src="/asciinema/asciinema-player.min.js"></script><div id='{{ .Get "src" | replaceRE "[[:^alnum:]]" "" }}'></div>
|
||||
<script>AsciinemaPlayer.create("{{ .Get "src" }}", document.getElementById('{{ .Get "src" | replaceRE "[[:^alnum:]]" "" }}'));</script>
|
2352
themes/hugo-theme-notrack/static/asciinema/asciinema-player.css
Normal file
2352
themes/hugo-theme-notrack/static/asciinema/asciinema-player.css
Normal file
File diff suppressed because it is too large
Load Diff
1
themes/hugo-theme-notrack/static/asciinema/asciinema-player.min.js
vendored
Normal file
1
themes/hugo-theme-notrack/static/asciinema/asciinema-player.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user