Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

I want to display the last_modified date on the page

Started by Muut Archive 10 years ago · 2 replies · 753 views
10 years ago

I want to display the last_modified date on the page, but when I place in my template, I don't get anything.

TWIG
{{ page.last_modified }}

or

TWIG

{{ last_modified }}
---
10 years ago

Thanks for the pointer. I was able to accomplish this in my theme, but doing the following:

TWIG

    {{ page.modified()|date("m/d/Y") }}
---

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2291 9 years ago
Archive · by Muut Archive, 9 years ago
2 1506 9 years ago
Archive · by Muut Archive, 9 years ago
2 4758 9 years ago
Archive · by Muut Archive, 9 years ago
1 3572 9 years ago
Archive · by Muut Archive, 9 years ago
3 1631 9 years ago