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 | 1757 | 9 years ago | ||
| 2 | 1181 | 9 years ago | ||
| 2 | 4345 | 9 years ago | ||
| 1 | 3235 | 9 years ago | ||
| 3 | 1335 | 9 years ago |