Uploaded image for project: 'Maven Doxia Sitetools'
  1. Maven Doxia Sitetools
  2. DOXIASITETOOLS-329

Expose lastModification date in addition to publishDate in Velocity Context

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Site renderer
    • None

    Description

      Currently only the published date (the same for the whole site) is available in the Velocity context (https://github.com/apache/maven-doxia-sitetools/blob/5fe4a4c5359e6a23b78f385e15f77767cadaee99/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java#L495). It would be useful to also populate the lastModification date of the doxia source file (if available).

      That way one could expose a more useful date for end-users (as the publish date rarely is equal to the date when a page was last touched). Obviously for Sinks/Documents not based on Doxia source files this is not available.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: