From 6925c0248cf70674576d42d173ff33b00a3d522a Mon Sep 17 00:00:00 2001 From: MyGiHu <74786828+MyGiHu@users.noreply.github.com> Date: Fri, 4 Dec 2020 16:49:32 +0100 Subject: Replacing Moment.js with native JavaScript (#266) * fix-262 * Replacing Moment.js with native JavaScript --- layouts/index.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'layouts') diff --git a/layouts/index.html b/layouts/index.html index fd1787c..d9243c3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -106,7 +106,7 @@ {{ .Content }} {{ if .Site.Params.home.localTime }} -

{{ i18n "index_currentTime" . }} .

+

{{ i18n "index_currentTime" . }} .

{{ end }} {{ with .Site.Params.email }}

@@ -132,12 +132,15 @@ {{ partial "js/owlCarousel.html" . }} {{ if .Site.Params.home.localTime }} - {{ $momentjs := resources.Get "vendor/momentjs/moment.min.js" }} - {{ $momentTimezone := resources.Get "vendor/momentjs/moment-timezone.min.js" }} - {{ $momentTimezoneWithData := resources.Get "vendor/momentjs/moment-timezone-with-data-2012-2022.min.js" }} - {{ $initMomentjs := resources.Get "js/initMoment.js" }} - {{ $bundleMoment := slice $momentjs $momentTimezone $momentTimezoneWithData $initMomentjs | resources.Concat "js/bundleMoment.js" | fingerprint }} - + {{ end }} -- cgit v1.2.3