1
0
forked from BgLUG/bglug.it

Compare commits

...

2 Commits

Author SHA1 Message Date
6a0eec5c78 fix taglist (#324)
fix nascondino tag

Reviewed-on: BgLUG/bglug.it#324
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-10-30 09:21:41 +00:00
0c15555dc1 fix edizioni linuxday (#323)
Reviewed-on: BgLUG/bglug.it#323
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-10-30 09:21:25 +00:00
4 changed files with 21 additions and 10 deletions

View File

@ -1,5 +1,5 @@
function show_all_tags(e) {
$(".tags-sidebar li").css("display","inline-block");
$(e).css("display","none");
return false;
}
$(".tags-sidebar li").removeClass("hidden");
$(e).addClass("hidden");
return false;
}

View File

@ -209,3 +209,10 @@ article header div.author {
.icon.major {
cursor: pointer;
}
.tags-sidebar {
li.hidden {
display: none;
visibility: hidden;
}
}

View File

@ -1,20 +1,24 @@
{{ $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 }}
<section>
<h3>{{ T "editions" }}</h3>
<ul class="links">
{{ range $years.Alphabetical.Reverse }}
{{ if not (in $hiddenTags .Name ) }}
{{ range $years }}
<li>
<a href="/{{ .Page.Lang }}{{ .Page.Path }}">
{{ .Page.LinkTitle | safeHTML }}
</a>
</li>
{{ end }}
{{ end }}
</ul>
</section>
{{ end }}

View File

@ -50,7 +50,7 @@
<li>
<a style="font-size: {{ $font_size }}rem;" href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML }} ({{ len .Pages }})</a></li>
{{ else }}
<li style="display: none;">
<li class="hidden">
<a style="font-size: {{ $font_size }}rem;" href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML }} ({{ len .Pages }})</a></li>
{{ end }}
{{ end }}