From c8be1b6c0d2d0585c239a12c4e7af1c07d55118c Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 15 Mar 2023 15:43:49 +0100 Subject: [PATCH] paper dates --- i18n/en.yml | 5 +++++ i18n/fr.yml | 5 +++++ layouts/partials/papers/document-nav.html | 21 +++++++++++++++++++++ 3 files changed, 31 insertions(+) diff --git a/i18n/en.yml b/i18n/en.yml index 15e84753..4694fe94 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -149,6 +149,11 @@ pages: details: Details informations: Informations posts: News +papers: + dates: + published: Published + accepted: Accepted + received: Received persons: posts: News programs: Programs diff --git a/i18n/fr.yml b/i18n/fr.yml index 5409cda4..ec104486 100644 --- a/i18n/fr.yml +++ b/i18n/fr.yml @@ -149,6 +149,11 @@ pages: details: En détail informations: Informations posts: Actualités +papers: + dates: + published: Publié le + accepted: Accepté le + received: Reçu le persons: posts: Actualités publiées récemment programs: Enseignements diff --git a/layouts/partials/papers/document-nav.html b/layouts/partials/papers/document-nav.html index 22055dc8..49b04d43 100644 --- a/layouts/partials/papers/document-nav.html +++ b/layouts/partials/papers/document-nav.html @@ -46,5 +46,26 @@ <time itemprop="datePublished" datetime="{{ .Date | time.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time> </dd> {{ end }} + + {{ with .Params.dates.published }} + <dt>{{ i18n "papers.dates.published" }}</dt> + <dd> + <time itemprop="datePublished" datetime="{{ . | time.Format "2006-01-02T15:04" }}">{{ . | time.Format ":date_long" }}</time> + </dd> + {{ end }} + + {{ with .Params.dates.accepted }} + <dt>{{ i18n "papers.dates.accepted" }}</dt> + <dd> + <time itemprop="datePublished" datetime="{{ . | time.Format "2006-01-02T15:04" }}">{{ . | time.Format ":date_long" }}</time> + </dd> + {{ end }} + + {{ with .Params.dates.received }} + <dt>{{ i18n "papers.dates.received" }}</dt> + <dd> + <time itemprop="datePublished" datetime="{{ . | time.Format "2006-01-02T15:04" }}">{{ . | time.Format ":date_long" }}</time> + </dd> + {{ end }} </dl> </aside> -- GitLab