fix edizioni linuxday (#323)
Reviewed-on: #323 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
07d99e6f8e
commit
0c15555dc1
@ -1,20 +1,24 @@
|
|||||||
{{ $hiddenTags := slice "linuxday-featured" }}
|
{{ $hiddenTags := slice "linuxday-featured" }}
|
||||||
{{ $years := where .Site.Taxonomies.grouping ".Page.Section" .Section }}
|
{{ $years1 := where .Site.Taxonomies.grouping ".Page.Section" .Section }}
|
||||||
|
{{ $years1 := $years1.Alphabetical.Reverse }}
|
||||||
|
{{ $years := slice }}
|
||||||
|
{{ range $years1 }}
|
||||||
|
{{ if and (strings.HasPrefix .Name "linuxday-") (not (in $hiddenTags .Name)) }}
|
||||||
|
{{ $years = $years | append . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- if gt (len $years) 0 }}
|
{{- if gt (len $years) 0 }}
|
||||||
<section>
|
<section>
|
||||||
<h3>{{ T "editions" }}</h3>
|
<h3>{{ T "editions" }}</h3>
|
||||||
<ul class="links">
|
<ul class="links">
|
||||||
{{ range $years.Alphabetical.Reverse }}
|
{{ range $years }}
|
||||||
|
|
||||||
{{ if not (in $hiddenTags .Name ) }}
|
|
||||||
<li>
|
<li>
|
||||||
<a href="/{{ .Page.Lang }}{{ .Page.Path }}">
|
<a href="/{{ .Page.Lang }}{{ .Page.Path }}">
|
||||||
{{ .Page.LinkTitle | safeHTML }}
|
{{ .Page.LinkTitle | safeHTML }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user