date_local

This commit is contained in:
f 2020-11-14 20:38:50 -03:00
parent 6e9b3ec5ff
commit 14ccaf8961
3 changed files with 96 additions and 4 deletions

View file

@ -1,6 +1,52 @@
---
locale: English
date: '%m/%d/%Y'
date:
format: '%m/%d/%Y'
abbr_day_names:
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
day_names:
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
abbr_month_names:
- Jan
- Feb
- Mar
- Apr
- May
- Jun
- Jul
- Aug
- Sep
- Oct
- Nov
- Dec
month_names:
- January
- February
- March
- April
- May
- June
- July
- August
- September
- October
- November
- December
time:
am: am
pm: pm
layouts:
post: Article
menu:

View file

@ -1,6 +1,52 @@
---
locale: Castellano
date: '%d/%m/%Y'
date:
format: '%d/%m/%Y'
abbr_day_names:
- Lun
- Mar
- Mié
- Jue
- Vie
- Sáb
- Dom
day_names:
- Lunes
- Martes
- Miércoles
- Jueves
- Viernes
- Sábado
- Domingo
abbr_month_names:
- Ene
- Feb
- Mar
- Abr
- May
- Jun
- Jul
- Ago
- Sep
- Oct
- Nov
- Dic
month_names:
- Enero
- Febrero
- Marzo
- Abril
- Mayo
- Junio
- Julio
- Agosto
- Septiembre
- Octubre
- Noviembre
- Diciembre
time:
am: am
pm: pm
layouts:
post: Artículo
menu:

View file

@ -22,8 +22,8 @@ layout: default
<p>
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.i18n.date | default: "%b %-d, %Y" -%}
{{ page.date | date: date_format }}
{%- assign date_format = site.i18n.date.format | default: "%b %-d, %Y" -%}
{{ page.date | date_local: date_format }}
</time>
{%- for author in page.author -%}