mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 14:42:54 +00:00
Added parameter for timeformat (#124)
This commit is contained in:
parent
9122e99c43
commit
819c058865
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
})
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue