From 88c02cc42a3aa76d3c0156b90cb9a33a0c128256 Mon Sep 17 00:00:00 2001 From: jesselau76 Date: Thu, 9 Jun 2022 12:03:10 +1200 Subject: fix hugo new version error --- layouts/partials/head.html | 7 ++----- layouts/shortcodes/flac.html | 5 +++++ layouts/shortcodes/videojs.html | 20 ++++++++++++++++++++ static/js/w3.js | 4 ++-- 4 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 layouts/shortcodes/flac.html create mode 100644 layouts/shortcodes/videojs.html 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 }} {{ "" | safeHTML }} -{{ .Hugo.Generator }} +{{ hugo.Generator }} {{ if .IsHome }} {{ $.Scratch.Set "theTitle" .Site.Params.Title }} @@ -26,10 +26,7 @@ -{{ if .RSSLink -}} - - -{{ end -}} + 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 @@ + \ 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 @@ + +
+ + + +
\ 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; -- cgit v1.2.3