internazionalizzazione sidebar (#245)
Reviewed-on: #245 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
ee19fe05ee
commit
39b8a66370
@ -2,5 +2,5 @@
|
|||||||
type: section
|
type: section
|
||||||
title: Events
|
title: Events
|
||||||
#description: "TODO: please fill this with a description"
|
#description: "TODO: please fill this with a description"
|
||||||
sidebar_right: en_sidebar-eventi
|
sidebar_right: sidebar-eventi
|
||||||
---
|
---
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
type: section
|
type: section
|
||||||
title: Eventi
|
title: Eventi
|
||||||
#description: "TODO: non so come descrivere la sezione eventi"
|
#description: "TODO: non so come descrivere la sezione eventi"
|
||||||
sidebar_right: it_sidebar-eventi
|
sidebar_right: sidebar-eventi
|
||||||
---
|
---
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
type: section
|
type: section
|
||||||
title: "Linux Day"
|
title: "Linux Day"
|
||||||
#description: "TODO: please fill this with a description"
|
#description: "TODO: please fill this with a description"
|
||||||
sidebar_right: en_sidebar-linuxday
|
sidebar_right: sidebar-linuxday
|
||||||
---
|
---
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
type: section
|
type: section
|
||||||
title: "Linux Day"
|
title: "Linux Day"
|
||||||
#description: "TODO: non so come descrivere la sezione linuxday"
|
#description: "TODO: non so come descrivere la sezione linuxday"
|
||||||
sidebar_right: it_sidebar-linuxday
|
sidebar_right: sidebar-linuxday
|
||||||
---
|
---
|
||||||
|
@ -4,3 +4,8 @@ footer_license_note: Except where otherwise noted, content on this site is publi
|
|||||||
all_posts_by: "All {{ . }}'s posts"
|
all_posts_by: "All {{ . }}'s posts"
|
||||||
location: Location
|
location: Location
|
||||||
all_events_in: All events in
|
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
|
||||||
|
@ -4,3 +4,8 @@ footer_license_note: Eccetto dove diversamente indicato, ogni contenuto di quest
|
|||||||
all_posts_by: "Tutti i post di {{ . }}"
|
all_posts_by: "Tutti i post di {{ . }}"
|
||||||
location: Dove
|
location: Dove
|
||||||
all_events_in: Tutti gli eventi in
|
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
|
||||||
|
@ -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 }}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
{{- partial "sidebar/en_vieni-a-trovarci.html" . -}}
|
|
||||||
{{- partial "sidebar/en_taglist.html" . -}}
|
|
||||||
{{- partial "sidebar/locationlist.html" . -}}
|
|
@ -1,3 +0,0 @@
|
|||||||
{{- partial "sidebar/en_linuxday-featured.html" . -}}
|
|
||||||
{{- partial "sidebar/en_taglist.html" . -}}
|
|
||||||
{{- partial "sidebar/en_vieni-a-trovarci.html" . -}}
|
|
@ -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&id=402b042a86&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>
|
|
@ -1,3 +0,0 @@
|
|||||||
{{- partial "sidebar/it_vieni-a-trovarci.html" . -}}
|
|
||||||
{{- partial "sidebar/it_taglist.html" . -}}
|
|
||||||
{{- partial "sidebar/locationlist.html" . -}}
|
|
@ -1,3 +0,0 @@
|
|||||||
{{- partial "sidebar/it_linuxday-featured.html" . -}}
|
|
||||||
{{- partial "sidebar/it_taglist.html" . -}}
|
|
||||||
{{- partial "sidebar/it_vieni-a-trovarci.html" . -}}
|
|
@ -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>
|
|
@ -2,7 +2,7 @@
|
|||||||
{{- $featured_pages := where $linuxday_pages ".Params.tags" "intersect" (slice "linuxday-featured") }}
|
{{- $featured_pages := where $linuxday_pages ".Params.tags" "intersect" (slice "linuxday-featured") }}
|
||||||
{{- if gt (len $featured_pages) 0 }}
|
{{- if gt (len $featured_pages) 0 }}
|
||||||
<section>
|
<section>
|
||||||
<h3>In evidenza</h3>
|
<h3>{{ T "featured" }}</h3>
|
||||||
<ul class="links">
|
<ul class="links">
|
||||||
{{ range $featured_pages }}
|
{{ range $featured_pages }}
|
||||||
<li><a href="{{ ref . .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
|
<li><a href="{{ ref . .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
|
3
layouts/partials/sidebar/sidebar-eventi.html
Normal file
3
layouts/partials/sidebar/sidebar-eventi.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{- partial "sidebar/vieni-a-trovarci.html" . -}}
|
||||||
|
{{- partial "sidebar/taglist.html" . -}}
|
||||||
|
{{- partial "sidebar/locationlist.html" . -}}
|
3
layouts/partials/sidebar/sidebar-linuxday.html
Normal file
3
layouts/partials/sidebar/sidebar-linuxday.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{- partial "sidebar/linuxday-featured.html" . -}}
|
||||||
|
{{- partial "sidebar/taglist.html" . -}}
|
||||||
|
{{- partial "sidebar/vieni-a-trovarci.html" . -}}
|
@ -1,16 +1,16 @@
|
|||||||
<section>
|
<section>
|
||||||
<h3>Vieni a trovarci</h3>
|
<h3>{{ T "come_and_see_us" }}</h3>
|
||||||
<ul class="links">
|
<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://www.fablabbergamo.it/">Fablab Bergamo</a></li>
|
||||||
<li><a href="https://chat.libreschool.org/">Mattermost</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>
|
<li><a href="https://lists.linux.it/listinfo/bglug">Mailing list</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<footer>
|
<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&id=402b042a86&f_id=00adfae3f0">
|
<form method="POST" action="https://bglug.us12.list-manage.com/subscribe/post?u=bcef2fbb6bc947b59162578e3&id=402b042a86&f_id=00adfae3f0">
|
||||||
<p><input type="email" name="EMAIL" id="email" placeholder="email" /></p>
|
<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>
|
</form>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
Loading…
x
Reference in New Issue
Block a user