diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 7 | ||||
-rw-r--r-- | layouts/shortcodes/flac.html | 5 | ||||
-rw-r--r-- | layouts/shortcodes/videojs.html | 20 |
3 files changed, 27 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0697095..421c1b1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,7 +9,7 @@ {{ end }} {{ "<!-- Enable responsiveness on mobile devices -->" | safeHTML }} <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> -{{ .Hugo.Generator }} +{{ hugo.Generator }} {{ if .IsHome }} {{ $.Scratch.Set "theTitle" .Site.Params.Title }} @@ -26,10 +26,7 @@ <!-- Permalink & RSSlink --> <link rel="canonical" href="{{ .Permalink }}" /> -{{ if .RSSLink -}} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> - <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> -{{ end -}} + <!-- Favicon --> <link rel="shortcut icon" href="{{ "/favicon.ico" | relURL }}" type="image/x-icon"> diff --git a/layouts/shortcodes/flac.html b/layouts/shortcodes/flac.html new file mode 100644 index 0000000..4fa5f63 --- /dev/null +++ b/layouts/shortcodes/flac.html @@ -0,0 +1,5 @@ +<audio controls loop> + <source src="/{{ .Inner }}.mp3" type="audio/mpeg"> + <source src="/{{ .Inner }}.m4a" type="audio/mp4"> +Your browser does not support the audio element. +</audio>
\ No newline at end of file diff --git a/layouts/shortcodes/videojs.html b/layouts/shortcodes/videojs.html new file mode 100644 index 0000000..24c5b39 --- /dev/null +++ b/layouts/shortcodes/videojs.html @@ -0,0 +1,20 @@ +<style>#instructions { max-width: 640px; text-align: left; margin: 30px auto; } + +</style> +<div id="instructions"> +<video + id="{{ .Inner }}" + class="video-js vjs-default-skin vjs-16-9" + controls + preload="auto" + width="640" + height="264" + poster="/images/{{ .Inner }}.png" + data-setup="{}"> + <source src="/{{ .Inner }}.mp4" type="video/mp4" /> + <source src="/{{ .Inner }}.webm" type="video/webm" /> + <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> + </video> + + <script src="https://vjs.zencdn.net/7.7.5/video.js"></script> +</div>
\ No newline at end of file |