website icon indicating copy to clipboard operation
website copied to clipboard

Display of Git Commit Message at Bottom of every Page

Open bismayam opened this issue 1 year ago • 16 comments

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.

Image

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/...

bismayam avatar Sep 06 '25 02:09 bismayam

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.

k8s-ci-robot avatar Sep 06 '25 02:09 k8s-ci-robot

I think this information is a little helpful. Does it harm people if we show it?

lmktfy avatar Sep 07 '25 12:09 lmktfy

/area web-development

lmktfy avatar Sep 07 '25 14:09 lmktfy

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.

bismayam avatar Sep 07 '25 17:09 bismayam

Hi @bismayam ! I would like to work on this bug. Can you assign this issue to me ?

devampatel03 avatar Sep 09 '25 08:09 devampatel03

/assign @devampatel03

bismayam avatar Sep 09 '25 10:09 bismayam

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:

  1. The page-meta-lastmod.html partial, 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.
  2. I also ran git blame on the baseof.html file to trace the history of this line. It appears that this line was introduced without the page-meta-lastmod.html file ever being present in the repository.
  3. Without the page-meta-lastmod.html file, 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.html file 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.html should be permanently removed to avoid confusion and unnecessary references to a non-existent partial.

devampatel03 avatar Sep 10 '25 20:09 devampatel03

the "page-meta-lastmod.html" file is inherited from Docsy.

tengqm avatar Sep 10 '25 22:09 tengqm

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.

devampatel03 avatar Sep 11 '25 20:09 devampatel03

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.

lmktfy avatar Oct 31 '25 00:10 lmktfy

/remove-kind bug /kind feature

lmktfy avatar Oct 31 '25 00:10 lmktfy

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 ☝️

Andygol avatar Nov 14 '25 09:11 Andygol

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Feb 12 '26 10:02 k8s-triage-robot

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Mar 14 '26 10:03 k8s-triage-robot

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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 avatar Apr 13 '26 11:04 k8s-triage-robot

@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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

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.

k8s-ci-robot avatar Apr 13 '26 11:04 k8s-ci-robot