Add published date to non-post pages#21
Conversation
This change adds a "Published [Date]" footer to all pages that are not posts (e.g., home page, 404 page), excluding the site index. The date displayed is the latest of either the frontmatter date or the file's last modified date, formatted as "DD Mon YYYY". - Added `latestDate` async filter in `.eleventy.js` to compare and return the latest date. - Updated `_includes/layouts/base.njk` to include the date display logic for non-post pages.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
11ty | 12f5329 | Jan 20 2026, 07:40 PM |
✅ Deploy Preview for sijobling ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This change adds a footer to all non-post pages (excluding the site index) that displays the text "Originally published on [Date]". The date displayed is the earliest of the frontmatter date, the file's last modified date, or the file's original creation date (retrieved via git log). The text is styled to be centered, italicized, and have 50% opacity. - Added `getOriginalDate` helper and `earliestDate` async filter in `.eleventy.js` to determine the earliest valid date. - Updated `_includes/layouts/base.njk` to include the footer logic and styling for non-post pages.
Added a "Published [Date]" footer to non-post pages, displaying the latest of the frontmatter date or the file's modification date. Implemented a new
latestDatefilter in.eleventy.jsand updated thebase.njklayout.PR created automatically by Jules for task 18111078838601130757 started by @si