Skip to content

Commit 6370b58

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fbbd371 commit 6370b58

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

_i18n/de/dates/pretty_dates.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@
1515
{% else -%}
1616
{% assign start_date = include.start | date: "%Y-%m-%d" -%}
1717
{% assign end_date = include.end | date: "%Y-%m-%d" -%}
18-
18+
1919
{% if start_date == end_date -%}
2020
{% assign day = start_date | date: "%-d" -%}
2121
{% assign year = start_date | date: "%Y" -%}
2222
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
2323
{% capture pretty_date %}{{ day }}. {{ month }} {{ year }}{% endcapture -%}
24-
24+
2525
{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" -%}
2626
{% assign start_day = start_date | date: "%-d" -%}
2727
{% assign end_day = end_date | date: "%-d" -%}
2828
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
2929
{% assign year = start_date | date: "%Y" -%}
3030
{% capture pretty_date %}{{ start_day }}. – {{ end_day }}. {{ month }} {{ year }}{% endcapture -%}
31-
31+
3232
{% elsif start_date | date: "%Y" == end_date | date: "%Y" -%}
3333
{% assign start_day = start_date | date: "%-d" -%}
3434
{% assign end_day = end_date | date: "%-d" -%}
3535
{% capture start_month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
3636
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture -%}
3737
{% assign year = start_date | date: "%Y" -%}
3838
{% capture pretty_date %}{{ start_day }}. {{ start_month }} – {{ end_day }}. {{ end_month }} {{ year }}{% endcapture -%}
39-
39+
4040
{% else -%}
4141
{% assign start_day = start_date | date: "%-d" -%}
4242
{% assign end_day = end_date | date: "%-d" -%}
@@ -46,4 +46,4 @@
4646
{% assign end_year = end_date | date: "%Y" -%}
4747
{% capture pretty_date %}{{ start_day }}. {{ start_month }} {{ start_year }} – {{ end_day }}. {{ end_month }} {{ end_year }}{% endcapture -%}
4848
{% endif -%}
49-
{% endif -%}{{ pretty_date | strip }}
49+
{% endif -%}{{ pretty_date | strip }}

_i18n/en/dates/pretty_dates.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
{% else %}
1616
{% assign start_date = include.start | date: "%Y-%m-%d" %}
1717
{% assign end_date = include.end | date: "%Y-%m-%d" %}
18-
18+
1919
{% if start_date == end_date %}
2020
{%- comment -%}When start and end dates are the same{%- endcomment -%}
2121
{% assign day = start_date | date: "%-d" %}
2222
{% assign year = start_date | date: "%Y" %}
2323
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
2424
{% capture pretty_date %}{{ month }} {{ day }}, {{ year }}{% endcapture %}
25-
25+
2626
{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" %}
2727
{%- comment -%}When start and end dates are in the same month{% endcomment %}
2828
{% assign start_day = start_date | date: "%-d" %}
2929
{% assign end_day = end_date | date: "%-d" %}
3030
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
3131
{% assign year = start_date | date: "%Y" %}
3232
{% capture pretty_date %}{{ month }} {{ start_day }} – {{ end_day }}, {{ year }}{% endcapture %}
33-
33+
3434
{% elsif start_date | date: "%Y" == end_date | date: "%Y" %}
3535
{%- comment -%}When start and end dates are in the same year{%- endcomment -%}
3636
{% assign start_day = start_date | date: "%-d" %}
@@ -39,7 +39,7 @@
3939
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture %}
4040
{% assign year = start_date | date: "%Y" %}
4141
{% capture pretty_date %}{{ start_month }} {{ start_day }} – {{ end_month }} {{ end_day }}, {{ year }}{% endcapture %}
42-
42+
4343
{% else %}
4444
{%- comment -%}When start and end dates are in different years{%- endcomment -%}
4545
{% assign start_day = start_date | date: "%-d" %}
@@ -50,4 +50,4 @@
5050
{% assign end_year = end_date | date: "%Y" %}
5151
{% capture pretty_date %}{{ start_month}} {{start_day}}, {{ start_year }} – {{ end_month }} {{ end_day }}, {{ end_year }}{% endcapture %}
5252
{% endif %}
53-
{% endif %}{{pretty_date | strip }}
53+
{% endif %}{{pretty_date | strip }}

_i18n/es/dates/pretty_dates.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@
1515
{% else -%}
1616
{% assign start_date = include.start | date: "%Y-%m-%d" -%}
1717
{% assign end_date = include.end | date: "%Y-%m-%d" -%}
18-
18+
1919
{% if start_date == end_date -%}
2020
{% assign day = start_date | date: "%-d" -%}
2121
{% assign year = start_date | date: "%Y" -%}
2222
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
2323
{% capture pretty_date %}{{ day }} de {{ month }} de {{ year }}{% endcapture -%}
24-
24+
2525
{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" -%}
2626
{% assign start_day = start_date | date: "%-d" -%}
2727
{% assign end_day = end_date | date: "%-d" -%}
2828
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
2929
{% assign year = start_date | date: "%Y" -%}
3030
{% capture pretty_date %}del {{ start_day }} al {{ end_day }} de {{ month }} de {{ year }}{% endcapture -%}
31-
31+
3232
{% elsif start_date | date: "%Y" == end_date | date: "%Y" -%}
3333
{% assign start_day = start_date | date: "%-d" -%}
3434
{% assign end_day = end_date | date: "%-d" -%}
3535
{% capture start_month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
3636
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture -%}
3737
{% assign year = start_date | date: "%Y" -%}
3838
{% capture pretty_date %}del {{ start_day }} de {{ start_month }} al {{ end_day }} de {{ end_month }} de {{ year }}{% endcapture -%}
39-
39+
4040
{% else -%}
4141
{% assign start_day = start_date | date: "%-d" -%}
4242
{% assign end_day = end_date | date: "%-d" -%}
@@ -46,4 +46,4 @@
4646
{% assign end_year = end_date | date: "%Y" -%}
4747
{% capture pretty_date %}del {{ start_day }} de {{ start_month }} de {{ start_year }} al {{ end_day }} de {{ end_month }} de {{ end_year }}{% endcapture -%}
4848
{% endif -%}
49-
{% endif -%}{{ pretty_date | strip }}
49+
{% endif -%}{{ pretty_date | strip }}

0 commit comments

Comments
 (0)