feat(blox-bootstrap): add support for Hugo v0.148

This commit is contained in:
George Cushen committed 2025-08-16 02:08:34 +01:00
1 parent 6fb35fc7aa
commit 91a55b4061
3 files changed
+6 -9

No files matched your search

@@ -53,12 +53,11 @@
<a href="{{ $page.RelPermalink }}#disqus_thread"><!-- Count will be inserted here --></a>
{{ end}}
{{ $taxonomy := "categories" }}
{{ if $page.Param $taxonomy }}
{{ if $page.Params.categories }}
<span class="middot-divider"></span>
<span class="article-categories">
<i class="fas fa-folder mr-1"></i>
{{- range $index, $value := ($page.GetTerms $taxonomy) -}}
{{- range $index, $value := ($page.GetTerms "categories") -}}
{{- if gt $index 0 }}, {{ end -}}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- end -}}
@@ -1,8 +1,7 @@
{{/* Display author list. */}}
{{- $taxonomy := "authors" }}
{{ if .Param $taxonomy }}
{{ range $index, $value := (.GetTerms $taxonomy) }}
{{ if .Params.authors }}
{{ range $index, $value := (.GetTerms "authors") }}
{{- /* Highlight the author's name? */ -}}
{{- $highlight_name := .Page.Params.highlight_name | default false -}}
@@ -1,7 +1,6 @@
{{ $taxonomy := "tags" }}
{{ if .Param $taxonomy }}
{{ if .Params.tags }}
<div class="article-tags">
{{ range $index, $value := (.GetTerms $taxonomy) }}
{{ range $index, $value := (.GetTerms "tags") }}
<a class="badge badge-light" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
</div>