Display of Git Commit Message at Bottom of every Page
This is a Bug Report
Problem:
At the bottom of each of the pages of the https://kubernetes.io there is info about the last commit message. For example: Kubernetes Release History page , a Git commit message is visible, along with a link to the corresponding commit:
🔗 docs: add note to broken release link (bb43a46caa)
It may not serve any contextual or user-facing purpose and may confuse readers.
Steps to Reproduce:
Navigate to https://kubernetes.io/releases/#release-history (Any page) Scroll to the bottom of the page. Observe the presence of the raw commit message and link.
Proposed Solution:
Review the source pages to ensure that commit references aren’t rendered in the final HTML unless explicitly intended.
Page to Update: https://kubernetes.io/...
This issue is currently awaiting triage.
SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.
The triage/accepted label can be added by org members by writing /triage accepted in a comment.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
I think this information is a little helpful. Does it harm people if we show it?
/area web-development
I think this information is a little helpful. Does it harm people if we show it?
I don't think there's any harm in displaying this information. However, I feel it would look cleaner to the end user without seeing some commit message in each page.
Hi @bismayam ! I would like to work on this bug. Can you assign this issue to me ?
/assign @devampatel03
I investigated the issue related to the display of the "Last modified" Git commit message on the web pages. The relevant code responsible for rendering this information is located in the baseof.html file at line 46:
{{ partial "page-meta-lastmod.html" . }}
Findings:
- The
page-meta-lastmod.htmlpartial, which is referenced in this line, does not exist in the repository. I searched the entire project directory and confirmed that the file is missing. - I also ran git blame on the
baseof.htmlfile to trace the history of this line. It appears that this line was introduced without thepage-meta-lastmod.htmlfile ever being present in the repository. - Without the
page-meta-lastmod.htmlfile, it is impossible to modify or adjust the internal logic for displaying the Git commit message.
Resolution: To resolve this issue, I tested the following:
- Commenting out or removing the line: This prevents the Git commit message from being rendered on the web pages. Upon doing so, the "Last modified" section no longer appears, and the issue is effectively resolved.
Recommendation:
- If the
page-meta-lastmod.htmlfile is intended to exist, it should be added to the repository with the appropriate logic for rendering the "Last modified" information. - If the file is not required, the line in
baseof.htmlshould be permanently removed to avoid confusion and unnecessary references to a non-existent partial.
the "page-meta-lastmod.html" file is inherited from Docsy.
Thanks for clarifying! That makes sense now. Since the partial is inherited from Docsy, we could technically override it by adding our own version in the partials folder, but I don’t think that’s necessary here. Instead, I added a conditional check in baseof.html so the section is only rendered if the show_last_modified param is explicitly set to true in hugo.toml. This way, we keep the behavior configurable without introducing redundant overrides.
I don't think we should "fix" this. Some people like it; some don't. It doesn't seem important to change from how things are now.
/remove-kind bug /kind feature
I hope this will help https://github.com/google/docsy/issues/246
https://github.com/kubernetes/website/blob/2a6d522c6dca28ecc8b436a8cb5c3e558d2b8732/hugo.toml#L24-L27
change to false ☝️
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle rotten - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Reopen this issue with
/reopen - Mark this issue as fresh with
/remove-lifecycle rotten - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
In response to this:
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied- After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied- After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closedYou can:
- Reopen this issue with
/reopen- Mark this issue as fresh with
/remove-lifecycle rotten- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.