mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 22:14:08 +00:00
feat(blox-bootstrap): add support for Hugo v0.148
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user