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 }}
---
I want to display the last_modified date on the page, but when I place in my template, I don't get anything.
{{ page.last_modified }}
or
{{ last_modified }}
---
it's:
{{ page.lastModified() }}
Thanks for the pointer. I was able to accomplish this in my theme, but doing the following:
{{ page.modified()|date("m/d/Y") }}
---
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1366 | 9 years ago | ||
| 2 | 940 | 9 years ago | ||
| 2 | 4069 | 9 years ago | ||
| 1 | 2960 | 9 years ago | ||
| 3 | 1125 | 9 years ago |