Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

I want to display the last_modified date on the page

Started by Muut Archive 10 years ago · 2 replies · 859 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 Muut Archive, 10 years ago
1 674 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago