1
0
forked from BgLUG/bglug.it

Compare commits

...

2 Commits

Author SHA1 Message Date
736ab3bc8a nascondi tag featured in sidebar (#182)
fixes #179

Reviewed-on: BgLUG/bglug.it#182
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-08-03 19:19:09 +00:00
721127ee78 visualizzazione data in taxonomy list (#180)
fixes #173

Reviewed-on: BgLUG/bglug.it#180
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-08-03 18:29:13 +00:00
3 changed files with 10 additions and 1 deletions

View File

@ -39,6 +39,9 @@
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a> <a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
<div class="inner"> <div class="inner">
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3> <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }}
<p> <p>
{{ with .Description }} {{ with .Description }}
{{- . | truncate 400 }} {{- . | truncate 400 }}

View File

@ -1,8 +1,11 @@
<section> <section>
{{- $hiddenTags := slice "Linuxday-Featured" -}}
<h3>Tags</h3> <h3>Tags</h3>
<ul class="tags-sidebar"> <ul class="tags-sidebar">
{{ range where .Site.Taxonomies.tags ".Page.Section" .Section }} {{ range where .Site.Taxonomies.tags ".Page.Section" .Section }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li> {{ if not (in $hiddenTags .Page.LinkTitle ) }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML }}</a></li>
{{ end }}
{{ end }} {{ end }}
</ul> </ul>
</section> </section>

View File

@ -1,8 +1,11 @@
<section> <section>
{{- $hiddenTags := slice "Linuxday-Featured" -}}
<h3>Tags</h3> <h3>Tags</h3>
<ul class="tags-sidebar"> <ul class="tags-sidebar">
{{ range where .Site.Taxonomies.tags ".Page.Section" .Section }} {{ range where .Site.Taxonomies.tags ".Page.Section" .Section }}
{{ if not (in $hiddenTags .Page.LinkTitle ) }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li> <li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }} {{ end }}
{{ end }}
</ul> </ul>
</section> </section>