Merge branch 'master' of git.ccczh.ch:cosin/cosin_website
This commit is contained in:
commit
d218c175fe
15 changed files with 68 additions and 14 deletions
|
@ -9,8 +9,7 @@ menu:
|
|||
|
||||
## Fahrplan {{< cosin "date_year" >}}
|
||||
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
|
||||
{{< schedule >}}
|
||||
|
||||
## Ältere Fahrpläne
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@ menu:
|
|||
|
||||
## Schedule {{< cosin "date_year" >}}
|
||||
|
||||
Schedule of this year's CoSin will be online in early June.
|
||||
|
||||
{{< schedule >}}
|
||||
|
||||
## Older schedules
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@ menu:
|
|||
|
||||
## Programme {{< cosin "date_year" >}}
|
||||
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
|
||||
{{< schedule >}}
|
||||
|
||||
## Anciens programmes
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@ menu:
|
|||
|
||||
## Tabella di marcia {{< cosin "date_year" >}}
|
||||
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
|
||||
{{< schedule >}}
|
||||
|
||||
## Tabelle di marcia precedenti
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ This year's CoSin takes place in the [{{< cosin "location_name" >}}][1] in {{< c
|
|||
|
||||
## Getting there
|
||||
|
||||
* Address: Faubourd du Jura 36, 2502 Biel/Bienne
|
||||
* Address: Faubourg du Jura 36, 2502 Biel/Bienne
|
||||
* [OpenStreetMap][2]
|
||||
* The railway station is approximately a 15-minute walk away
|
||||
* Parking spaces are available
|
||||
|
|
|
@ -37,7 +37,8 @@ cfp_url = "https://frab.ccczh.ch/en/cosin/cfp/session/new"
|
|||
|
||||
|
||||
schedule_available = true
|
||||
schedule_urls = [
|
||||
schedule_main_url = "https://www.cosin.ch/fahrplan/2017/index.html"
|
||||
schedule_day_urls = [
|
||||
"https://www.cosin.ch/fahrplan/2017/schedule/1.html",
|
||||
"https://www.cosin.ch/fahrplan/2017/schedule/2.html",
|
||||
"https://www.cosin.ch/fahrplan/2017/schedule/3.html"]
|
||||
|
|
9
layouts/shortcodes/schedule.html
Normal file
9
layouts/shortcodes/schedule.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ if eq .Site.Language.Lang "de" }}
|
||||
{{ partial "fahrplan.de.html" . }}
|
||||
{{ else if eq .Site.Language.Lang "fr" }}
|
||||
{{ partial "fahrplan.fr.html" . }}
|
||||
{{ else if eq .Site.Language.Lang "it" }}
|
||||
{{ partial "fahrplan.it.html" . }}
|
||||
{{ else if eq .Site.Language.Lang "en" }}
|
||||
{{ partial "fahrplan.en.html" . }}
|
||||
{{ end }}
|
12
themes/cosin-theme/layouts/partials/fahrplan.de.html
Normal file
12
themes/cosin-theme/layouts/partials/fahrplan.de.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ if .Site.Data.cosin.schedule_available }}
|
||||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin ist da!
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="{{ .Site.Data.cosin.date_year | safeURL }}">CoSin {{ .Site.Data.cosin.date_year }}</a></li>
|
||||
</ul>
|
||||
{{ else }}
|
||||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
</p>
|
||||
{{ end}}
|
12
themes/cosin-theme/layouts/partials/fahrplan.en.html
Normal file
12
themes/cosin-theme/layouts/partials/fahrplan.en.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ if .Site.Data.cosin.schedule_available }}
|
||||
<p>
|
||||
Schedule of this year's CoSin is ready!
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="{{ .Site.Data.cosin.date_year | safeURL }}">CoSin {{ .Site.Data.cosin.date_year }}</a></li>
|
||||
</ul>
|
||||
{{ else }}
|
||||
<p>
|
||||
Schedule of this year's CoSin will be online in early June.
|
||||
</p>
|
||||
{{ end}}
|
12
themes/cosin-theme/layouts/partials/fahrplan.fr.html
Normal file
12
themes/cosin-theme/layouts/partials/fahrplan.fr.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ if .Site.Data.cosin.schedule_available }}
|
||||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin ist da!
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="{{ .Site.Data.cosin.date_year | safeURL }}">CoSin {{ .Site.Data.cosin.date_year }}</a></li>
|
||||
</ul>
|
||||
{{ else }}
|
||||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
</p>
|
||||
{{ end}}
|
12
themes/cosin-theme/layouts/partials/fahrplan.it.html
Normal file
12
themes/cosin-theme/layouts/partials/fahrplan.it.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ if .Site.Data.cosin.schedule_available }}
|
||||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin ist da!
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="{{ .Site.Data.cosin.date_year | safeURL }}">CoSin {{ .Site.Data.cosin.date_year }}</a></li>
|
||||
</ul>
|
||||
{{ else }}
|
||||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
</p>
|
||||
{{ end}}
|
|
@ -41,7 +41,7 @@
|
|||
{{ if .schedule_available }}
|
||||
<p><strong>Fahrplan:</strong></p>
|
||||
<ul>
|
||||
{{ range $index, $element := .schedule_urls }}
|
||||
{{ range $index, $element := .schedule_day_urls }}
|
||||
<li><a href="{{ $element | safeURL }}">Tag {{ add $index 1 }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
{{ if .schedule_available }}
|
||||
<p><strong>Schedule:</strong></p>
|
||||
<ul>
|
||||
{{ range $index, $element := .schedule_urls }}
|
||||
{{ range $index, $element := .schedule_day_urls }}
|
||||
<li><a href="{{ $element | safeURL }}">Day {{ add $index 1 }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
{{ if .schedule_available }}
|
||||
<p><strong>Programme:</strong></p>
|
||||
<ul>
|
||||
{{ range $index, $element := .schedule_urls }}
|
||||
{{ range $index, $element := .schedule_day_urls }}
|
||||
<li><a href="{{ $element | safeURL }}">Jour {{ add $index 1 }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
{{ if .schedule_available }}
|
||||
<p><strong>Tabella di marcia:</strong></p>
|
||||
<ul>
|
||||
{{ range $index, $element := .schedule_urls }}
|
||||
{{ range $index, $element := .schedule_day_urls }}
|
||||
<li><a href="{{ $element | safeURL }}">Giorno {{ add $index 1 }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue