fix ordinal numbers for english dates
This commit is contained in:
parent
0f59b97f1a
commit
41df4a75de
4 changed files with 7 additions and 5 deletions
|
@ -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" >}}.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
2
layouts/shortcodes/cosin_humanize.html
Normal file
2
layouts/shortcodes/cosin_humanize.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ $value := index .Site.Data.cosin (.Get 0) }}
|
||||
{{- humanize $value -}}
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue