Sidebar cleanup

This commit is contained in:
Raoul 2018-04-29 18:03:46 +02:00
parent 7ca6a6952d
commit f04cf21e51
No known key found for this signature in database
GPG key ID: C7493D73B67C1842
5 changed files with 32 additions and 57 deletions

View file

@ -10,29 +10,16 @@ DefaultContentLanguageInSubdir = true
[Languages]
[Languages.de]
weight = 1
languageNames = {de = "Deutsch",
fr = "Französisch",
it = "Italienisch",
en = "Englisch"}
LanguageName = "Deutsch"
[Languages.fr]
weight = 2
languageNames = {de = "Allemand",
fr = "Français",
it = "Italien",
en = "Anglais"}
LanguageName = "Français"
[Languages.it]
weight = 3
languageNames = {de = "Tedesco",
fr = "Francese ",
it = "Italiano",
en = "Inglese"}
LanguageName = "Italiano"
[Languages.en]
weight = 4
languageNames = {de = "German",
fr = "French",
it = "Italian",
en = "English"}
LanguageName = "English"

View file

@ -4,8 +4,8 @@
<h3>{{ .title }} {{ .date_year }}</h3>
<p>
Chaos Singularity (CoSin) ist ein jährlicher Event des Schweizer Chaos. Der
Inhalt erstreckt sich über Technik und Politik zu Kunst und Kultur.
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>
@ -39,9 +39,7 @@
{{ if .schedule_available }}
<p>
<strong>Fahrplan:</strong>
</p>
<p><strong>Fahrplan:</strong></p>
<ul>
{{ range $index, $element := .schedule_urls }}
<li><a href="{{ $element | safeURL }}">Tag {{ add $index 1 }}</a></li>
@ -50,17 +48,16 @@
{{ end }}
<p><strong>IRC:</strong> <a href="{{ .irc_server | safeURL }}{{ .irc_channel }}">{{ .irc_channel }}</a>
</p>
<p><strong>IRC:</strong> <a href="{{ .irc_server | safeURL }}{{ .irc_channel }}">{{ .irc_channel }}</a></p>
{{ end }}
<p>
<strong>Sprache:</strong>
{{ if .IsTranslated }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ index .Site.Params.languageNames .Lang }}</a>
{{ end }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a>
{{ end }}
{{ end }}
</p>

View file

@ -39,9 +39,7 @@
{{ if .schedule_available }}
<p>
<strong>Schedule:</strong>
</p>
<p><strong>Schedule:</strong></p>
<ul>
{{ range $index, $element := .schedule_urls }}
<li><a href="{{ $element | safeURL }}">Day {{ add $index 1 }}</a></li>
@ -50,17 +48,16 @@
{{ end }}
<p><strong>IRC:</strong> <a href="{{ .irc_server | safeURL }}{{ .irc_channel }}">{{ .irc_channel }}</a>
</p>
<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 }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a>
{{ end }}
{{ end }}
</p>

View file

@ -39,9 +39,7 @@
{{ if .schedule_available }}
<p>
<strong>Programme:</strong>
</p>
<p><strong>Programme:</strong></p>
<ul>
{{ range $index, $element := .schedule_urls }}
<li><a href="{{ $element | safeURL }}">Jour {{ add $index 1 }}</a></li>
@ -50,17 +48,16 @@
{{ end }}
<p><strong>IRC:</strong> <a href="{{ .irc_server | safeURL }}{{ .irc_channel }}">{{ .irc_channel }}</a>
</p>
<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 }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a>
{{ end }}
{{ end }}
</p>

View file

@ -4,8 +4,8 @@
<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.
Chaos Singularity (CoSin) è l'evento annuale del Caos Svizzero.
I contenuti si articolano tra tecnica, politica, arte e cultura.
</p>
<p>
@ -39,9 +39,7 @@
{{ if .schedule_available }}
<p>
<strong>Tabella di marcia:</strong>
</p>
<p><strong>Tabella di marcia:</strong></p>
<ul>
{{ range $index, $element := .schedule_urls }}
<li><a href="{{ $element | safeURL }}">Giorno {{ add $index 1 }}</a></li>
@ -50,17 +48,16 @@
{{ end }}
<p><strong>IRC:</strong> <a href="{{ .irc_server | safeURL }}{{ .irc_channel }}">{{ .irc_channel }}</a>
</p>
<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 }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a>
{{ end }}
{{ end }}
</p>