最近搜索


没有最近搜索

Arthur Badin's Avatar

Arthur Badin

已加入2025年1月28日

·

最后活动2025年2月11日

关注

0

关注者

0

活动总数

3

投票

0

订阅

1

活动概览

的最新活动 Arthur Badin

Arthur Badin 进行了评论,

社区评论 Developer - Zendesk APIs

Hey Erica,
 

We're using Help Center .hbs templates for the footer.
 

Example:

←footer.hbs→

© 2024. All rights reserved.

 

I was wondering if there's a way to get the current year using the templating language. Right now, we have to update it manually every year.

I found the date helper, but I'm not sure how to use it to get the current year or can we format it to include only year.

One idea is to wrap the year in a and update it dynamically using JavaScript, but that might cause a flash when the script runs. Is that the best approach, or is there a better way?

Thanks!

查看评论 · 已于 2025年2月11日 编辑 · Arthur Badin

0

关注者

0

投票

0

评论


Arthur Badin 创建了一个帖子,

帖子 Developer - Zendesk APIs

Any way to make current year in the footer dynamic? Ideally without using JavaScript. Something like this:

{{date "" format="YYYY"}}

已于 2025年1月28日 发布 · Arthur Badin

0

关注者

3

投票

2

评论