blocco con pagine in evidenza e traduzioni

This commit is contained in:
Paolo Asperti 2024-07-14 20:32:45 +02:00
parent 0fa43d0c45
commit 7dae588185
Signed by: paspo
GPG Key ID: 06D46905D19D5182
16 changed files with 62 additions and 5 deletions

View File

@ -77,7 +77,7 @@ languages:
weight: 20
- identifier: linuxday
name: Linux Day
pageRef: /linuxday
pageRef: linuxday
weight: 30
- identifier: about
name: L'associazione
@ -138,7 +138,7 @@ languages:
weight: 20
- identifier: linuxday
name: Linux Day
pageRef: /linuxday
pageRef: linuxday
weight: 30
- identifier: about
name: The association

View File

@ -2,4 +2,5 @@
type: section
title: Events
#description: "TODO: please fill this with a description"
sidebar_right: en_sidebar-eventi
---

View File

@ -2,5 +2,5 @@
type: section
title: Eventi
#description: "TODO: non so come descrivere la sezione eventi"
sidebar_right: sidebar-eventi
sidebar_right: it_sidebar-eventi
---

View File

@ -2,4 +2,5 @@
type: section
title: "Linux Day"
#description: "TODO: please fill this with a description"
sidebar_right: en_sidebar-linuxday
---

View File

@ -2,4 +2,5 @@
type: section
title: "Linux Day"
#description: "TODO: non so come descrivere la sezione linuxday"
sidebar_right: it_sidebar-linuxday
---

View File

@ -0,0 +1,13 @@
{{- $linuxday_pages := (where .Site.Pages "Section" .Section) }}
{{- $featured_pages := where $linuxday_pages ".Params.tags" "intersect" (slice "linuxday-featured") }}
{{- if gt (len $featured_pages) 0 }}
<section>
<h3>Featured</h3>
<ul class="links">
{{ range $featured_pages }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>
{{ end }}

View File

@ -0,0 +1,2 @@
{{- partial "sidebar/en_vieni-a-trovarci.html" . -}}
{{- partial "sidebar/en_taglist.html" . -}}

View File

@ -0,0 +1,3 @@
{{- partial "sidebar/en_linuxday-featured.html" . -}}
{{- partial "sidebar/en_taglist.html" . -}}
{{- partial "sidebar/en_vieni-a-trovarci.html" . -}}

View File

@ -0,0 +1,12 @@
<section>
<h3>Come and see us</h3>
<ul class="links">
<li><a href="/it/dove-siamo">Where</a></li>
<li><a href="https://www.fablabbergamo.it/">Fablab Bergamo</a></li>
<li><a href="https://chat.libreschool.org/">Mattermost</a></li>
<li><a href="https://lists.linux.it/listinfo/bglug">Mailing list</a></li>
</ul>
<footer>
<a href="#" class="button">Subscribe to our newsletter</a>
</footer>
</section>

View File

@ -0,0 +1,13 @@
{{- $linuxday_pages := (where .Site.Pages "Section" .Section) }}
{{- $featured_pages := where $linuxday_pages ".Params.tags" "intersect" (slice "linuxday-featured") }}
{{- if gt (len $featured_pages) 0 }}
<section>
<h3>In evidenza</h3>
<ul class="links">
{{ range $featured_pages }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>
{{ end }}

View File

@ -0,0 +1,2 @@
{{- partial "sidebar/it_vieni-a-trovarci.html" . -}}
{{- partial "sidebar/it_taglist.html" . -}}

View File

@ -0,0 +1,3 @@
{{- partial "sidebar/it_linuxday-featured.html" . -}}
{{- partial "sidebar/it_taglist.html" . -}}
{{- partial "sidebar/it_vieni-a-trovarci.html" . -}}

View File

@ -0,0 +1,8 @@
<section>
<h3>Tags</h3>
<ul class="tags-sidebar">
{{ range where .Site.Taxonomies.tags ".Page.Section" .Section }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>

View File

@ -1,2 +0,0 @@
{{- partial "sidebar/vieni_a_trovarci.html" . -}}
{{- partial "sidebar/taglist.html" . -}}