forked from BgLUG/bglug.it
Compare commits
2 Commits
07d99e6f8e
...
6a0eec5c78
Author | SHA1 | Date | |
---|---|---|---|
6a0eec5c78 | |||
0c15555dc1 |
@ -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;
|
||||
}
|
||||
|
@ -209,3 +209,10 @@ article header div.author {
|
||||
.icon.major {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tags-sidebar {
|
||||
li.hidden {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user