diff --git a/public/js/album.js b/public/js/album.js index 9901f26..4cd9eeb 100644 --- a/public/js/album.js +++ b/public/js/album.js @@ -23,7 +23,7 @@ page.getPrettyBytes = function (num, si) { window.onload = function () { const elements = document.getElementsByClassName('file-size') for (let i = 0; i < elements.length; i++) - elements[i].innerHTML = page.getPrettyBytes(parseInt(elements[i].innerHTML)) + elements[i].innerHTML = page.getPrettyBytes(parseInt(elements[i].innerHTML.replace(/\s*B$/i, ''))) page.lazyLoad = new LazyLoad() } diff --git a/views/_globals.njk b/views/_globals.njk index 31d64ff..94aa583 100644 --- a/views/_globals.njk +++ b/views/_globals.njk @@ -16,7 +16,7 @@ v3: CSS and JS files (libs such as bulma, lazyload, etc). v4: Renders in /public/render/* directories (to be used by render.js). #} -{% set v1 = "DKoamSTKbO" %} +{% set v1 = "VAH8ougx12" %} {% set v2 = "hiboQUzAzp" %} {% set v3 = "DKoamSTKbO" %} {% set v4 = "dplQUZqTnf" %} diff --git a/views/album.njk b/views/album.njk index 5189cf4..7ca54d1 100644 --- a/views/album.njk +++ b/views/album.njk @@ -42,7 +42,7 @@
{{ file.name }}
-{{ file.size }}
+{{ file.size }} B