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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/js/initMoment.js2
-rw-r--r--exampleSite/config.toml1
2 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/initMoment.js b/assets/js/initMoment.js
index 609f671..e638cf1 100644
--- a/assets/js/initMoment.js
+++ b/assets/js/initMoment.js
@@ -1,4 +1,4 @@
$(document).ready(function() {
- var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("h:mm A");
+ var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("{{ .Site.Params.home.timeFormat }}");
$("#time").html(time);
})
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 9d5f082..08aabc8 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -23,6 +23,7 @@ DefaultContentLanguage = "en" # Default language fo
localTime = true # Show your current local time in contact section
timeZone = "America/Los_Angeles" # Your timezone as in the TZ* column of this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
+ timeFormat = "h:mm A" # https://momentjs.com/docs/#/displaying/format/
[params.projects]
useTwoColumns = false # Use a layout with two columns instead of three