Multi-lang sidebar
This commit is contained in:
parent
1a6d0115d0
commit
16383b03ac
10 changed files with 270 additions and 11 deletions
|
@ -1,17 +1,15 @@
|
|||
title = "Chaos Singularity"
|
||||
|
||||
description = "Chaos Singularity (CoSin) ist ein jährlicher Event des Schweizer Chaos. Der Inhalt erstreckt sich über Technik und Politik zu Kunst und Kultur."
|
||||
|
||||
|
||||
# Set to false if date for next year is not known yet:
|
||||
date_known = true
|
||||
|
||||
date_day_start = "15"
|
||||
date_day_end = "17"
|
||||
date_day_start = 15
|
||||
date_day_end = 17
|
||||
date_month = 6
|
||||
date_year = 2018
|
||||
|
||||
date_day_name_start = "Freitag"
|
||||
date_day_name_end = "Sonntag"
|
||||
date_month = "Juni"
|
||||
date_year = 2018
|
||||
|
||||
|
||||
place_known = true
|
||||
|
|
12
data/mese.toml
Normal file
12
data/mese.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
1 = "gennaio"
|
||||
2 = "febbraio"
|
||||
3 = "marzo"
|
||||
4 = "aprile"
|
||||
5 = "maggio"
|
||||
6 = "giugno"
|
||||
7 = "luglio"
|
||||
8 = "agosto"
|
||||
9 = "settembre"
|
||||
10 = "ottobre"
|
||||
11 = "novembre"
|
||||
12 = "dicembre"
|
12
data/mois.toml
Normal file
12
data/mois.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
1 = "janvier"
|
||||
2 = "février"
|
||||
3 = "mars"
|
||||
4 = "avril"
|
||||
5 = "mai"
|
||||
6 = "juin"
|
||||
7 = "juillet"
|
||||
8 = "août"
|
||||
9 = "septembre"
|
||||
10 = "octobre"
|
||||
11 = "novembre"
|
||||
12 = "décembre"
|
12
data/monate.toml
Normal file
12
data/monate.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
1 = "Januar"
|
||||
2 = "Februar"
|
||||
3 = "März"
|
||||
4 = "April"
|
||||
5 = "Mai"
|
||||
6 = "Juni"
|
||||
7 = "Juli"
|
||||
8 = "August"
|
||||
9 = "September"
|
||||
10 = "Oktober"
|
||||
11 = "November"
|
||||
12 = "Dezember"
|
12
data/months.toml
Normal file
12
data/months.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
1 = "January"
|
||||
2 = "February"
|
||||
3 = "March"
|
||||
4 = "April"
|
||||
5 = "May"
|
||||
6 = "June"
|
||||
7 = "July"
|
||||
8 = "August"
|
||||
9 = "September"
|
||||
10 = "October"
|
||||
11 = "November"
|
||||
12 = "December"
|
|
@ -15,7 +15,17 @@
|
|||
{{ block "menu" . }} {{ partial "site-menu.html" . }} {{ end }}
|
||||
|
||||
<div id="content">
|
||||
{{ block "sidebar" . }} {{ partial "site-sidebar.html" . }} {{ end }}
|
||||
{{ block "sidebar" . }}
|
||||
{{ if eq .Site.Language.Lang "de" }}
|
||||
{{ partial "site-sidebar.de.html" . }}
|
||||
{{ else if eq .Site.Language.Lang "fr" }}
|
||||
{{ partial "site-sidebar.fr.html" . }}
|
||||
{{ else if eq .Site.Language.Lang "it" }}
|
||||
{{ partial "site-sidebar.it.html" . }}
|
||||
{{ else if eq .Site.Language.Lang "en" }}
|
||||
{{ partial "site-sidebar.en.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ block "main" . }} {{ end }}
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
|
|
|
@ -3,12 +3,14 @@
|
|||
|
||||
<h3>{{ .title }} {{ .date_year }}</h3>
|
||||
|
||||
<p>{{ .description }}
|
||||
<p>
|
||||
Chaos Singularity (CoSin) ist ein jährlicher Event des Schweizer Chaos. Der
|
||||
Inhalt erstreckt sich über Technik und Politik zu Kunst und Kultur.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ if .date_known }}
|
||||
<strong>Datum:</strong> {{ .date_day_start }}.-{{ .date_day_end }}. {{ .date_month }} {{ .date_year }}<br/>
|
||||
<strong>Datum:</strong> {{ .date_day_start }}.-{{ .date_day_end }}. {{ index $.Site.Data.monate (string .date_month) }} {{ .date_year }}<br/>
|
||||
{{ end }}
|
||||
|
||||
{{ if .place_known }}
|
67
themes/cosin-theme/layouts/partials/site-sidebar.en.html
Normal file
67
themes/cosin-theme/layouts/partials/site-sidebar.en.html
Normal file
|
@ -0,0 +1,67 @@
|
|||
<div class="left">
|
||||
{{ with .Site.Data.cosin }}
|
||||
|
||||
<h3>{{ .title }} {{ .date_year }}</h3>
|
||||
|
||||
<p>
|
||||
Cosin is a yearly chaotic event in Switzerland. The content ranges from
|
||||
technical and political, to social and cultural.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ if .date_known }}
|
||||
<strong>Date:</strong> {{ index $.Site.Data.months (string .date_month) }} {{ .date_day_start }}th - {{ .date_day_end }}th {{ .date_year }}<br/>
|
||||
{{ end }}
|
||||
|
||||
{{ if .place_known }}
|
||||
<strong>Location:</strong> {{ .location }} in <strong>{{ .city }}</strong><br/>
|
||||
{{ end }}
|
||||
|
||||
{{ if .registration_open }}
|
||||
<strong>Entrance:</strong> {{ .entrance_fee }}
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
|
||||
{{ if .flyer_available }}
|
||||
<p><strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .date_year }}</a></strong></p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .registration_open }}
|
||||
<p><strong>Registration for meals:</strong> <a href="mailto:{{ .registration_email }}">{{ .registration_email }}</a></p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .cfp_running }}
|
||||
<p><strong>Call for Participation:</strong> <a href="{{ .cfp_url | safeURL }}">Frab</a></p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .schedule_available }}
|
||||
<p>
|
||||
<strong>Schedule:</strong>
|
||||
<ul>
|
||||
{{ range $index, $element := .schedule_urls }}
|
||||
<li><a href="{{ $element | safeURL }}">Day {{ add $index 1 }}</a>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<p><strong>IRC:</strong> <a href="{{ .irc_server | safeURL }}{{ .irc_channel }}">{{ .irc_channel }}</a>
|
||||
</p>
|
||||
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
<strong>Language:</strong>
|
||||
{{ if .IsTranslated }}
|
||||
{{ range .Translations }}
|
||||
<a href="{{ .Permalink }}">{{ index .Site.Params.languageNames .Lang }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
</div>
|
67
themes/cosin-theme/layouts/partials/site-sidebar.fr.html
Normal file
67
themes/cosin-theme/layouts/partials/site-sidebar.fr.html
Normal file
|
@ -0,0 +1,67 @@
|
|||
<div class="left">
|
||||
{{ with .Site.Data.cosin }}
|
||||
|
||||
<h3>{{ .title }} {{ .date_year }}</h3>
|
||||
|
||||
<p>
|
||||
Chaos Singularity (CoSin) est un événement chaotique qui se tient chaque année en Suisse.
|
||||
Le contenu s'étend de la technologie et la politique au social et culturel.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ if .date_known }}
|
||||
<strong>Date:</strong> {{ .date_day_start }}.-{{ .date_day_end }}. {{ index $.Site.Data.mois (string .date_month) }} {{ .date_year }}<br/>
|
||||
{{ end }}
|
||||
|
||||
{{ if .place_known }}
|
||||
<strong>Lieu:</strong> {{ .location }} à <strong>{{ .city }}</strong><br/>
|
||||
{{ end }}
|
||||
|
||||
{{ if .registration_open }}
|
||||
<strong>Entrée:</strong> {{ .entrance_fee }}
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
|
||||
{{ if .flyer_available }}
|
||||
<p><strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .date_year }}</a></strong></p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .registration_open }}
|
||||
<p><strong>Inscription:</strong> <a href="mailto:{{ .registration_email }}">{{ .registration_email }}</a> (inscription aux repas)</p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .cfp_running }}
|
||||
<p><strong>Call for Participation:</strong> <a href="{{ .cfp_url | safeURL }}">Frab</a></p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .schedule_available }}
|
||||
<p>
|
||||
<strong>Programme:</strong>
|
||||
<ul>
|
||||
{{ range $index, $element := .schedule_urls }}
|
||||
<li><a href="{{ $element | safeURL }}">Jour {{ add $index 1 }}</a>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<p><strong>IRC:</strong> <a href="{{ .irc_server | safeURL }}{{ .irc_channel }}">{{ .irc_channel }}</a>
|
||||
</p>
|
||||
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
<strong>Langage:</strong>
|
||||
{{ if .IsTranslated }}
|
||||
{{ range .Translations }}
|
||||
<a href="{{ .Permalink }}">{{ index .Site.Params.languageNames .Lang }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
</div>
|
67
themes/cosin-theme/layouts/partials/site-sidebar.it.html
Normal file
67
themes/cosin-theme/layouts/partials/site-sidebar.it.html
Normal file
|
@ -0,0 +1,67 @@
|
|||
<div class="left">
|
||||
{{ with .Site.Data.cosin }}
|
||||
|
||||
<h3>{{ .title }} {{ .date_year }}</h3>
|
||||
|
||||
<p>
|
||||
Chaos Singularity (CoSin) è l'evento annuale del Caos Svizzero. I contenuti si
|
||||
articolano tra tecnica, politica, arte e cultura.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ if .date_known }}
|
||||
<strong>Data:</strong> {{ .date_day_start }}.-{{ .date_day_end }}. {{ index $.Site.Data.mese (string .date_month) }} {{ .date_year }}<br/>
|
||||
{{ end }}
|
||||
|
||||
{{ if .place_known }}
|
||||
<strong>Luogo:</strong> {{ .location }} a <strong>{{ .city }}</strong><br/>
|
||||
{{ end }}
|
||||
|
||||
{{ if .registration_open }}
|
||||
<strong>Costo:</strong> {{ .entrance_fee }}
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
|
||||
{{ if .flyer_available }}
|
||||
<p><strong><a href="/flyer/{{ .flyer_path }}">Flyer CoSin {{ .date_year }}</a></strong></p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .registration_open }}
|
||||
<p><strong>Registrazione:</strong> <a href="mailto:{{ .registration_email }}">{{ .registration_email }}</a> (per i pasti)</p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .cfp_running }}
|
||||
<p><strong>Call for Participation:</strong> <a href="{{ .cfp_url | safeURL }}">Frab</a></p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if .schedule_available }}
|
||||
<p>
|
||||
<strong>Tabella di marcia:</strong>
|
||||
<ul>
|
||||
{{ range $index, $element := .schedule_urls }}
|
||||
<li><a href="{{ $element | safeURL }}">Giorno {{ add $index 1 }}</a>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<p><strong>IRC:</strong> <a href="{{ .irc_server | safeURL }}{{ .irc_channel }}">{{ .irc_channel }}</a>
|
||||
</p>
|
||||
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
<strong>Linguaggio:</strong>
|
||||
{{ if .IsTranslated }}
|
||||
{{ range .Translations }}
|
||||
<a href="{{ .Permalink }}">{{ index .Site.Params.languageNames .Lang }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
</div>
|
Loading…
Reference in a new issue