internazionalizzazione sidebar #245

Merged
paspo merged 1 commits from paspo/bglug.it:fix-i18n into main 2024-09-20 19:50:17 +00:00
18 changed files with 25 additions and 61 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -4,3 +4,8 @@ footer_license_note: Except where otherwise noted, content on this site is publi
all_posts_by: "All {{ . }}'s posts"
location: Location
all_events_in: All events in
featured: Featured
subscribe_mailinglist: Subscribe to our mailing list
subscribe: Subscribe
come_and_see_us: Come and see us
where: Where

View File

@ -4,3 +4,8 @@ footer_license_note: Eccetto dove diversamente indicato, ogni contenuto di quest
all_posts_by: "Tutti i post di {{ . }}"
location: Dove
all_events_in: Tutti gli eventi in
featured: In evidenza
subscribe_mailinglist: Iscriviti alla mailing list
subscribe: Iscriviti
come_and_see_us: Vieni a trovarci
where: Dove siamo

View File

@ -1,13 +0,0 @@
{{- $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="{{ ref . .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>
{{ end }}

View File

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

View File

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

View File

@ -1,16 +0,0 @@
<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>
<h3>Subscribe to our mailing list</h3>
<form method="POST" action="https://bglug.us12.list-manage.com/subscribe/post?u=bcef2fbb6bc947b59162578e3&amp;id=402b042a86&amp;f_id=00adfae3f0">
<p><input type="email" name="EMAIL" id="email" placeholder="email" /></p>
<input type="submit" name="subscribe" class="button" value="Subscribe" />
</form>
</footer>
</section>

View File

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

View File

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

View File

@ -1,11 +0,0 @@
<section>
{{- $hiddenTags := slice "Linuxday-Featured" -}}
<h3>Tags</h3>
<ul class="tags-sidebar">
{{ 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>
{{ end }}
{{ end }}
</ul>
</section>

View File

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

View File

@ -0,0 +1,3 @@
{{- partial "sidebar/vieni-a-trovarci.html" . -}}
{{- partial "sidebar/taglist.html" . -}}
{{- partial "sidebar/locationlist.html" . -}}

View File

@ -0,0 +1,3 @@
{{- partial "sidebar/linuxday-featured.html" . -}}
{{- partial "sidebar/taglist.html" . -}}
{{- partial "sidebar/vieni-a-trovarci.html" . -}}

View File

@ -1,16 +1,16 @@
<section>
<h3>Vieni a trovarci</h3>
<h3>{{ T "come_and_see_us" }}</h3>
<ul class="links">
<li><a href="/it/dove-siamo">Dove siamo</a></li>
<li><a href="/it/dove-siamo">{{ T "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>
<h3>Iscriviti alla mailing list</h3>
<h3>{{ T "subscribe_mailinglist:" }}</h3>
<form method="POST" action="https://bglug.us12.list-manage.com/subscribe/post?u=bcef2fbb6bc947b59162578e3&amp;id=402b042a86&amp;f_id=00adfae3f0">
<p><input type="email" name="EMAIL" id="email" placeholder="email" /></p>
<input type="submit" name="subscribe" class="button" value="Iscriviti" />
<input type="submit" name="subscribe" class="button" value="{{ T "subscribe" }}" />
</form>
</footer>
</section>