As a reader, I want to be warned when an FAQ page may be outdated so I can approach the information with caution and confirm it through other sources if needed.
🧠 Context
Some FAQ pages contain information that becomes outdated over time (e.g. admission requirements, course formats, deadlines). If a page hasn’t been updated in over 16 months, we want to display a global warning banner at the top of the page indicating that the content may no longer be accurate.
We already track update history using the last_updated frontmatter field.
This feature should be implemented on pages that use the layout:
layouts/_default/faq-question.html
🛠️ Implementation Plan
-
Update the layout template
- Open
layouts/_default/faq-question.html
- Add logic to check if
last_updated is older than 16 months from the current date
-
Display a global banner
-
If the check passes, render a banner at the top of the page
-
The banner should say something like:
⚠️ This FAQ was last updated over 16 months ago. Some information may be outdated.
-
Style is up to interpretation, but it should be clearly visible and consistent with the rest of the site’s design
-
Test with a mock outdated page
- Manually set an older
last_updated value on a local FAQ page and verify that the banner appears
- Test with a recent date to confirm that the banner is hidden when appropriate
✅ Acceptance Criteria
As a reader, I want to be warned when an FAQ page may be outdated so I can approach the information with caution and confirm it through other sources if needed.
🧠 Context
Some FAQ pages contain information that becomes outdated over time (e.g. admission requirements, course formats, deadlines). If a page hasn’t been updated in over 16 months, we want to display a global warning banner at the top of the page indicating that the content may no longer be accurate.
We already track update history using the
last_updatedfrontmatter field.This feature should be implemented on pages that use the layout:
layouts/_default/faq-question.html🛠️ Implementation Plan
Update the layout template
layouts/_default/faq-question.htmllast_updatedis older than 16 months from the current dateDisplay a global banner
If the check passes, render a banner at the top of the page
The banner should say something like:
Style is up to interpretation, but it should be clearly visible and consistent with the rest of the site’s design
Test with a mock outdated page
last_updatedvalue on a local FAQ page and verify that the banner appears✅ Acceptance Criteria
faq-questionlayout show a banner iflast_updatedis more than 16 months oldlast_updateddate is within 16 monthslayouts/_default/faq-question.html