Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Raspberry Pi Kubernetes Cluster - Part 1
date: 2018-04-07 09:01:00 -05:00
tags:
- kubernetes
- raspberry pi
- raspberry-pi
Comment on lines 6 to +7
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

PR description note says the tag URL will change "from /tags/raspberry-pi/", but this change is consolidating variants to the raspberry-pi term. Consider updating the description to avoid implying the canonical URL is moving away from /tags/raspberry-pi/.

Copilot uses AI. Check for mistakes.
layout: post
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Raspberry Pi Kubernetes Cluster - Part 2
date: '2018-05-02 21:13:07'
tags:
- kubernetes
- raspberry pi
- raspberry-pi
layout: post
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Raspberry Pi Kubernetes Cluster - Part 3
layout: post
tags:
- kubernetes
- raspberry pi
- raspberry-pi
date: '2018-12-24 15:59:23'
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Raspberry Pi Kubernetes Cluster - Part 4
date: '2018-12-28 10:35:23'
tags:
- kubernetes
- raspberrypi
- raspberry-pi
layout: post
---

Expand Down
31 changes: 31 additions & 0 deletions layouts/partials/list.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
{{- if eq .Kind "taxonomy" -}}
<section class="container taxonomy">
<header>
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{- i18n (lower .Title) | default .Title | title -}}
</a>
{{ with .Params.icon }}
<i class="{{ . }}" aria-hidden="true"></i>
{{ end }}
</h1>
</header>
{{ .Content }}
<ul>
{{ $type := .Type }}
{{ range $key, $value := .Data.Terms.Alphabetical }}
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

range $key, $value := .Data.Terms.Alphabetical declares $key/$value but the template uses the implicit dot (.) instead; consider simplifying to range .Data.Terms.Alphabetical (or consistently use $value) to avoid unused variables and make the intent clearer.

Suggested change
{{ range $key, $value := .Data.Terms.Alphabetical }}
{{ range .Data.Terms.Alphabetical }}

Copilot uses AI. Check for mistakes.
{{ $name := .Name }}
{{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<li>
<span class="taxonomy-element">
<a href="{{ .Permalink }}">{{ .Name }}</a>
Comment on lines +15 to +22
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

In the taxonomy branch, links are resolved via $.Site.GetPage (printf "/%s/%s" $type $name), where $name comes from .Name. This can drop terms when the displayed name differs from the URLized term (e.g., spaces/uppercase/special chars), and it also does an extra lookup per term. Prefer using the term page that is already available from .Data.Terms.Alphabetical (e.g., the entry’s .Page/permalink), or at minimum URLize $name before building the path.

Suggested change
{{ $type := .Type }}
{{ range $key, $value := .Data.Terms.Alphabetical }}
{{ $name := .Name }}
{{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<li>
<span class="taxonomy-element">
<a href="{{ .Permalink }}">{{ .Name }}</a>
{{ range $key, $value := .Data.Terms.Alphabetical }}
{{ $termPage := .Page }}
{{ $count := .Count }}
{{ with $termPage }}
<li>
<span class="taxonomy-element">
<a href="{{ .Permalink }}">{{ .Title }}</a>

Copilot uses AI. Check for mistakes.
<sup>{{ $count }}</sup>
</span>
</li>
{{ end }}
{{ end }}
</ul>
</section>
{{- else -}}
<section class="container list">
<header>
<h1 class="title">
Expand All @@ -24,3 +54,4 @@ <h1 class="title">
</ul>
{{ partial "pagination.html" . }}
</section>
{{- end -}}