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 | 2591 | 9 years ago | ||
| 2 | 1705 | 9 years ago | ||
| 2 | 4998 | 9 years ago | ||
| 1 | 3829 | 9 years ago | ||
| 3 | 1812 | 9 years ago |