Skip to content

fix(#2215): hide last updated date on REST API page - #2269

Merged
jkuester merged 1 commit into
medic:mainfrom
jsabutis:2215-api-last-updated
Oct 15, 2026
Merged

jkuester merged 1 commit into
medic:mainfrom
jsabutis:2215-api-last-updated

Conversation

@jsabutis

Copy link
Copy Markdown
Contributor

Description

Closes #2215

Adds a displayUpdatedDate front matter flag (default true) to layouts/docs/single.html and sets it to false on the REST API page, which then renders the same spacer Hextra uses when the date is off site-wide. The date tracked the last commit to the api.md wrapper rather than the OpenAPI spec, and the spec has no date to source one from (its info block carries only version: 5.3.0).

Checked with a Hugo 0.158.0 extended build: only /building/reference/api/ loses "Last updated" (491 other pages keep it), confirmed in Chromium.

AI Disclosure: This PR was written by Claude Code under my direction. I reviewed the change.

License

The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.

The date reflects the last commit to the api.md wrapper, not the OpenAPI
spec it loads. Add a displayUpdatedDate front matter flag that the docs
single layout respects and turn it off for the REST API page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jkuester
jkuester self-requested a review October 14, 2026 15:59

@jkuester jkuester left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean and straightforward! Thanks @jsabutis!

@jkuester
jkuester merged commit b1e4061 into medic:main Oct 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Last updated" date on REST API docs page is misleading

2 participants