Skip to content

Fix blank sidebar items when linkTitle/title is missing#724

Open
priyankajainibmz wants to merge 1 commit into
tektoncd:mainfrom
priyankajainibmz:fix-sidebar-blank-items
Open

Fix blank sidebar items when linkTitle/title is missing#724
priyankajainibmz wants to merge 1 commit into
tektoncd:mainfrom
priyankajainibmz:fix-sidebar-blank-items

Conversation

@priyankajainibmz
Copy link
Copy Markdown

Fixes #720

Changes

Fixes an issue where some sidebar items were rendered as blank (clickable but with no visible text).

This occurred when linkTitle and title were missing in certain synced documentation pages.

Added a fallback in the sidebar template:

  • Use .LinkTitle if available
  • Else .Title
  • Else fallback to .File.BaseFileName

This ensures all sidebar items are visible even when metadata is missing.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

@tekton-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign alangreene after the PR has been reviewed.
You can assign the PR to them by writing /assign @alangreene in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 4, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: priyankajainibmz / name: Priyanka Jain (97bf5b0)

@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 4, 2026
@priyankajainibmz priyankajainibmz force-pushed the fix-sidebar-blank-items branch from 6478e33 to 97bf5b0 Compare May 8, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing text on the site bar menu

2 participants