Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jesselau76/hugo-w3-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesselau76 <jesselau76@gmail.com>2022-06-09 03:03:10 +0300
committerjesselau76 <jesselau76@gmail.com>2022-06-09 03:03:10 +0300
commit88c02cc42a3aa76d3c0156b90cb9a33a0c128256 (patch)
tree2df7acbc62e921278a754fe7078e1aff135e6359
parentf766ec17256d5ad439ba1fb654bfaa420b11acf9 (diff)
fix hugo new version errorHEADmaster
-rw-r--r--layouts/partials/head.html7
-rw-r--r--layouts/shortcodes/flac.html5
-rw-r--r--layouts/shortcodes/videojs.html20
-rw-r--r--static/js/w3.js4
4 files changed, 29 insertions, 7 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
diff --git a/static/js/w3.js b/static/js/w3.js
index 5745661..bd15e27 100644
--- a/static/js/w3.js
+++ b/static/js/w3.js
@@ -210,8 +210,8 @@ w3.sortHTMLbyNumber = function(id, sel, sortvalue) {
v1 = b[ii].innerHTML.toLowerCase();
v2 = b[ii + 1].innerHTML.toLowerCase();
}
- var i1 = parseInt(v1, 10);
- var i2 = parseInt(v2, 10);
+ var i1 = parseFloat(v1);
+ var i2 = parseFloat(v2);
if ((j == 0 && (i1 > i2)) || (j == 1 && (i1 < i2))) {
bytt = 1;
break;