fix ordinal numbers for english dates

This commit is contained in:
Adrian Friedli 2018-04-30 23:46:03 +02:00
parent 0f59b97f1a
commit 41df4a75de
No known key found for this signature in database
GPG key ID: 72488301A5824477
4 changed files with 7 additions and 5 deletions

View file

@ -19,8 +19,8 @@ learn new stuff and have fun.
## When and Where is CoSin?
This year's CoSin takes place from
{{< cosin_i18n "date_start_weekday" >}}, {{< cosin_i18n "date_start_month" >}} {{< cosin "date_start_day" >}}th until
{{< cosin_i18n "date_end_weekday" >}}, {{< cosin_i18n "date_end_month" >}} {{< cosin "date_end_day" >}}th
{{< cosin_i18n "date_start_weekday" >}}, {{< cosin_i18n "date_start_month" >}} {{< cosin_humanize "date_start_day" >}} until
{{< cosin_i18n "date_end_weekday" >}}, {{< cosin_i18n "date_end_month" >}} {{< cosin_humanize "date_end_day" >}}
{{< cosin "date_year" >}}
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin_i18n "location_name" >}}]({{< cosin "location_url" >}}) in {{< cosin_i18n "location_city" >}}.

View file

@ -10,8 +10,8 @@ menu:
## Date
CoSin {{< cosin "date_year" >}} takes place from
{{< cosin_i18n "date_start_weekday" >}}, {{< cosin_i18n "date_start_month" >}} {{< cosin "date_start_day" >}}th until
{{< cosin_i18n "date_end_weekday" >}}, {{< cosin_i18n "date_end_month" >}} {{< cosin "date_end_day" >}}th
{{< cosin_i18n "date_start_weekday" >}}, {{< cosin_i18n "date_start_month" >}} {{< cosin_humanize "date_start_day" >}} until
{{< cosin_i18n "date_end_weekday" >}}, {{< cosin_i18n "date_end_month" >}} {{< cosin_humanize "date_end_day" >}}
{{< cosin "date_year" >}}.
## Cost

View file

@ -0,0 +1,2 @@
{{ $value := index .Site.Data.cosin (.Get 0) }}
{{- humanize $value -}}

View file

@ -10,7 +10,7 @@
<p>
{{ if .date_known }}
<strong>Date:</strong> {{ i18n .date_start_month }} {{ .date_start_day }}th - {{ i18n .date_end_month }} {{ .date_end_day }}th {{ .date_year }}<br/>
<strong>Date:</strong> {{ i18n .date_start_month }} {{ humanize .date_start_day }} - {{ i18n .date_end_month }} {{ humanize .date_end_day }} {{ .date_year }}<br/>
{{ end }}
{{ if .location_known }}