Skip to content

Commit

Permalink
Merge pull request #2864 from hahwul/fixed-bug-in-sbom
Browse files Browse the repository at this point in the history
Convert SBOM addOn ID to lowercase in the breadcrumbs
  • Loading branch information
thc202 authored Nov 8, 2024
2 parents 55ce7c9 + 04d3499 commit d26be1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/layouts/sbom/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 class="text--white">{{ .Title }}</h1>
<header class="breadcrumbs">
<a href="/docs/">Docs</a> &gt;
<a href="/docs/sbom/">SBOM</a> &gt;
<a href="/docs/sbom/{{ $addOn.id }}">{{ $addOn.name }}</a>
<a href="/docs/sbom/{{ $addOn.id | lower }}">{{ $addOn.name }}</a>
</header>
<br>
<p>This page contains a list of all the libraries involved in building version <code>{{ $addOn.version }}</code> of the
Expand Down
2 changes: 1 addition & 1 deletion site/layouts/shortcodes/addons.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{{end}}
{{ $bomMdFilePath := print "docs/sbom/" .id ".md" }}
{{ if os.FileExists $bomMdFilePath }}
<a class="no-border" title="SBOM" href="/docs/sbom/{{ .id }}" target="_blank" rel="noopener noreferrer"><img alt="SBOM" src="/img/addons/sbom.png" /></a>
<a class="no-border" title="SBOM" href="/docs/sbom/{{ .id | lower }}" target="_blank" rel="noopener noreferrer"><img alt="SBOM" src="/img/addons/sbom.png" /></a>
{{end}}
<br>
{{ .description }}
Expand Down

0 comments on commit d26be1f

Please sign in to comment.