Hi all,
I'd like to add a meta-tag to my page-template that always displays the actual date, like this:
<meta name="date" content="Mon, 11 Sep 2017 17:22:44 +0200">
How would I achieve that? Any help is appreciated big time.
Hi all,
I'd like to add a meta-tag to my page-template that always displays the actual date, like this:
<meta name="date" content="Mon, 11 Sep 2017 17:22:44 +0200">
How would I achieve that? Any help is appreciated big time.
Add this code into your template:
<meta name="date" content="{{ now|date('r') }}">
Thank you so much for the enlightenment and I promise to dig deeper into the Twig documentation in the future.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 4 | 120 | 2 days ago | ||
| 1 | 176 | 6 days ago | ||
| 1 | 232 | 3 weeks ago | ||
| 4 | 364 | 1 month ago | ||
| 4 | 730 | 3 months ago |