Support » Plugin: Gantry 5 Framework » Adding last modified date to articles

  • jeyjoo

    (@jeyjoo)


    Hi,
    I want to override custom/view/partials/meta.html.twig file so that I can add the last modified date as well as the published date.
    Do you know how I go about this in twig? What is the name of the modified variable in Twig?

    <span class="date">Last updated: {{ post.date(gantry.config.get('content.' ~ scope ~ '.meta-date.format', 'j F Y')) }}</span>

    Thanks

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.