In article.pug cache ToClientTimezone() to a var for futher use.
This commit is contained in:
parent
6dc826b0ca
commit
6775b05d70
@ -22,5 +22,6 @@ block content
|
|||||||
h2= title
|
h2= title
|
||||||
div.menu
|
div.menu
|
||||||
a(href='/stuff#articles') Go back to articles list
|
a(href='/stuff#articles') Go back to articles list
|
||||||
time(datetime=util.ToClientTimezone(date, r).Format("2006-01-02")) #{util.ToClientTimezone(date, r).Format("02 January 2006")}
|
- dctz := util.ToClientTimezone(date, r)
|
||||||
|
time(datetime=dctz.Format("2006-01-02")) #{dctz.Format("02 January 2006")}
|
||||||
| !{body}
|
| !{body}
|
Loading…
Reference in New Issue
Block a user