octopress / multilingual

Write elegant multi-language Jekyll sites
MIT License
69 stars 15 forks source link

Request for a translation date format #28

Open taringamberini opened 8 years ago

taringamberini commented 8 years ago

It would very useful if existed a translation date format, like the date format, for post which would contain a translation_date attribute in the taml front matter:


---
layout: post
lang: it
title: foo bar
date: 2016-01-20 18:22:50 +0100
translation_id: 6786ddcf2a3a23f4c92021f56b139529
translator_name: Name Surname
translator_url: http://www.namesurname.com
translation_date: 2016-02-25 19:10:50 +0100

---

We could use it as:

{% if post.translation_date %}Translated: {{ post.translation_date_time_html }}{% endif %}