---
title: "How to add meta-tag with today's date?"
url: 'https://getgrav.org/forum/themes-styling/how-to-add-meta-tag-with-todays-date-t218'
markdown: 'https://getgrav.org/forum/themes-styling/how-to-add-meta-tag-with-todays-date-t218.md'
date: '2026-06-21'
description: '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'
---

[Themes & Styling](https://getgrav.org/forum/themes-styling)

#  How to add meta-tag with today's date? 

  Started by Joachim Liedtke 9 years ago · 2 replies · 1443 views    

 [9 years ago](https://getgrav.org/forum/themes-styling/how-to-add-meta-tag-with-todays-date-t218#post-19561 "Permalink") 

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.

 [9 years ago](https://getgrav.org/forum/themes-styling/how-to-add-meta-tag-with-todays-date-t218#post-19587 "Permalink") 

Add this code into your template:
`<meta name="date" content="{{ now|date('r') }}">`

 [9 years ago](https://getgrav.org/forum/themes-styling/how-to-add-meta-tag-with-todays-date-t218#post-19590 "Permalink") 

Thank you so much for the enlightenment and I promise to dig deeper into the Twig documentation in the future.

[Log in](https://getgrav.org/login?return=%2Fforum%2Fthemes-styling%2Fhow-to-add-meta-tag-with-todays-date-t218) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [Grav2 with Quark2 – All pages in the hamburger-menu of a one-pager](https://getgrav.org/forum/themes-styling/grav2-with-quark2-all-pages-in-the-hamburger-menu-of-a-one-pager-t9485)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by AH, 2 weeks ago |  | 1 | 199 | [9 hours ago](https://getgrav.org/forum/themes-styling/grav2-with-quark2-all-pages-in-the-hamburger-menu-of-a-one-pager-t9485 "by AH") |
| [\[quark\] mobile menu as the modular page menu](https://getgrav.org/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by Bruno, 4 years ago |  | 6 | 1350 | [10 hours ago](https://getgrav.org/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132 "by AH") |
| [Modular Page Background Image Display](https://getgrav.org/forum/themes-styling/modular-page-background-image-display-t9486)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by TomW, 2 weeks ago |  | 2 | 203 | [2 days ago](https://getgrav.org/forum/themes-styling/modular-page-background-image-display-t9486 "by TomW") |
| [Inheriting a Theme does not quite work correctly](https://getgrav.org/forum/themes-styling/inheriting-a-theme-does-not-quite-work-correctly-t9501)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by themetman, 3 days ago |  | 0 | 56 | [3 days ago](https://getgrav.org/forum/themes-styling/inheriting-a-theme-does-not-quite-work-correctly-t9501 "by themetman") |
| [Is it a way to get the "content - summary" in a twig template ?](https://getgrav.org/forum/themes-styling/is-it-a-way-to-get-the-content-summary-in-a-twig-template-t9431)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by FrViPofm, 2 months ago |  | 4 | 668 | [1 month ago](https://getgrav.org/forum/themes-styling/is-it-a-way-to-get-the-content-summary-in-a-twig-template-t9431 "by Paul Hibbitts") |
