diff options
author | Hanzei <hanzei@mailbox.org> | 2018-07-13 12:19:48 +0300 |
---|---|---|
committer | Hanzei <hanzei@mailbox.org> | 2018-07-13 12:19:48 +0300 |
commit | 618fe065fe78383159e17840dcaaa09d4f9d8203 (patch) | |
tree | ba6e96c427f210a8e5d94066cdaf0ad09248084a /assets | |
parent | 54dad641377e0cdd09d9b852384d014dd4f74466 (diff) |
Fix js include
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/index.js b/assets/js/index.js index d73b3a3..03ab427 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -23,7 +23,7 @@ $(document).keypress(function(e) { } }); -{{ if .Site.Params.localTime }} +{{ if and .Site.Params.localTime .Page.IsHome }} $(document).ready(function() { var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A"); $('#time').html(time); |