Skip to content

Commit

Permalink
Localized time format
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMagPie committed Sep 13, 2020
2 parents fe0743c + 581e6bd commit 89ae81d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions _data/en/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ title: Alternative Friday Factorio Fan Facts
description: The community-driven follow-on to the beloved Factorio Friday Facts
footer-copyright: This website is a fan-project and not directly affiliated with
home-header: Alternative Friday Factorio Fan Facts
date-format: "%Y-%m-%d"
author:
writtenby: Written by
editedby: Edited by
Expand Down
1 change: 1 addition & 0 deletions _data/es/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ title: Alternative Friday Factorio Fan Facts
description: La continuación de la comunidad de los amados Factorio Friday Facts
footer-copyright: Este sitio web es un proyecto hecho por los fans y no tiene relacion con
home-header: Alternative Friday Factorio Fan Facts
date-format: "%d-%m-%Y"
author:
writtenby: Escrito por
editedby: Editado por
Expand Down
1 change: 1 addition & 0 deletions _data/fr/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ title: Faits alternatifs du vendredi sur factorio (fait par les fans)
description: La suite communautaire aux tant apréciés Faits sur Factorio le Vendredi
footer-copyright: Ce site internet est un projet proposé par les fans et n'est pas directement affilié à
home-header: Faits alternatifs du vendredi sur factorio
date-format: "%d-%m-%Y"
author:
writtenby: Écrit par
editedby: Édité par
Expand Down
1 change: 1 addition & 0 deletions _data/it/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ title: Factorio Friday Facts Alternativi della Comunity
description: Il seguito degli amati Factorio Friday Facts gestito dalla comunity
footer-copyright: Questo è un progetto gestito dai fan e non direttamente dagli sviluppatori
home-header: Factorio Friday Facts Alternativi
date-format: "%d-%m-%Y"
author:
writtenby: Scritto da
editedby: Modificato da
Expand Down
1 change: 1 addition & 0 deletions _data/ru/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ title: Альтернативные Пятничные Факты Factorio
description: Общественное продолжение возлюбленным Пятничным Фактам Factorio
footer-copyright: Этот сайт - фан-проект и не связан напрямую с
home-header: Альтернативные Пятничные Факты
date-format: "%d-%m-%Y"
author:
writtenby: Написали
editedby: Отредактировали
Expand Down
1 change: 1 addition & 0 deletions _data/ua/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ title: Альтернативні П'ятничні Факти про Factorio (
description: Продовження улюблених П'ятничних Фактів, але цього разу від гравців
footer-copyright: Цей сайт є фан-проєктом і не пов'язаний з
home-header: Альтернативні П'ятничні Факти
date-format: "%d-%m-%Y"
author:
writtenby: Написано
editedby: Відредаговано
Expand Down
3 changes: 2 additions & 1 deletion _includes/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
{% endif %}

{% if page.date or post.date %}
{{ site.data.locale.author.date }} {{ page.date | default: post.date | date: "%Y-%m-%d" }}{% endif %}
{{ site.data.locale.author.date }} {{ page.date | default: post.date | date: site.data.locale.date-format }}
{% endif %}

0 comments on commit 89ae81d

Please sign in to comment.