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 |
|---|---|---|---|---|
| 3 | 266 | 2 weeks ago | ||
| 5 | 332 | 3 weeks ago | ||
| 1 | 319 | 4 weeks ago | ||
| 1 | 357 | 1 month ago | ||
| 4 | 484 | 2 months ago |