diff --git a/assets/css/_partial/_footer.scss b/assets/css/_partial/_footer.scss index 8464fdda..b9274bcc 100644 --- a/assets/css/_partial/_footer.scss +++ b/assets/css/_partial/_footer.scss @@ -22,6 +22,10 @@ footer { animation: icon-animate 1.33s ease-in-out infinite; } + .run-times { + font-variant-numeric: tabular-nums lining-nums; + } + } } diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index 8aec301b..dddd6b12 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -242,7 +242,7 @@ hours = Math.floor(runTime / 60 / 60 - (24 * days)), minutes = Math.floor(runTime / 60 - (24 * 60 * days) - (60 * hours)), seconds = Math.floor((now - run) / 1000 - (24 * 60 * 60 * days) - (60 * 60 * hours) - (60 * minutes)); - document.querySelector(".run-times").innerHTML = `${days}d ${String(hours).padStart(2,0)}h ${String(minutes).padStart(2,0)}m ${String(seconds).padStart(2,0)}s`; + document.querySelector(".run-times").innerHTML = `${days},${String(hours).padStart(2,0)}:${String(minutes).padStart(2,0)}:${String(seconds).padStart(2,0)}`; } {{- end -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f15d7a6a..6004405e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -57,7 +57,7 @@ > {{- if .Site.Params.ibruce.siteTime -}} + > Loading... {{- end -}}