From 90a80366a1dc7ce983481429174032431c1e23d7 Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Wed, 26 Aug 2020 13:49:16 +0200
Subject: [PATCH 01/13] Add LastMod time in article info
Add the date of the last modification to the line with the publish date
---
layouts/posts/single.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 35899b6..5313009 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -75,6 +75,7 @@
{{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }}
+ {{ if .LastMod }} (Last updated: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }}
{{- if .GitInfo }}
From 0b19d7bb63a019dc1bf794c93e532e3e70e8fa7c Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:47:33 +0000
Subject: [PATCH 02/13] English translation for Last updated
---
i18n/en.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/en.toml b/i18n/en.toml
index 467981c..03c0444 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -34,3 +34,6 @@ other = "Table of Contents"
[wordCount]
one = "One Word"
other = "{{ .Count }} Words"
+
+[lastModified]
+other = "Last updated"
From bb656bf7f24586bf47d8f01d151f475ac5c64729 Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:48:46 +0000
Subject: [PATCH 03/13] German translation for Last Updated
---
i18n/de.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/de.toml b/i18n/de.toml
index 2f0317b..7ef99a2 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -34,3 +34,6 @@ other = "Inhaltsverzeichnis"
[wordCount]
one = "Ein Wort"
other = "{{ .Count }} Wörter"
+
+[lastModified]
+other = "Letzte Aktualisierung"
From 59ce0927609e1dfcff9ce73ab55ae962c734c0ea Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:49:36 +0000
Subject: [PATCH 04/13] Spanish translation for Last Updated
---
i18n/es.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/es.toml b/i18n/es.toml
index 1643ec7..1dce9bb 100644
--- a/i18n/es.toml
+++ b/i18n/es.toml
@@ -34,3 +34,6 @@ other = "Tabla de Contenido"
[wordCount]
one = "Una Palabra"
other = "{{ .Count }} Palabras"
+
+[lastModified]
+other = "Ultima actualización"
From 88ad6b5062f3c5a9555c853b63248cc4d85cfba6 Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:50:16 +0000
Subject: [PATCH 05/13] French translation Last Updated
---
i18n/fr.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/fr.toml b/i18n/fr.toml
index 9ea342e..1ba6fe9 100644
--- a/i18n/fr.toml
+++ b/i18n/fr.toml
@@ -34,3 +34,6 @@ other = "Table des matières"
[wordCount]
one = "Un Mot"
other = "{{ .Count }} Mots"
+
+[lastModified]
+other = "Mise à jour"
From 1a4df7058f4b9c20c177b54af88f5ab41ccf4bf6 Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:51:36 +0000
Subject: [PATCH 06/13] Last Updated
---
i18n/hi.toml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/i18n/hi.toml b/i18n/hi.toml
index aa84bf9..6486c73 100644
--- a/i18n/hi.toml
+++ b/i18n/hi.toml
@@ -33,4 +33,7 @@ other = "अनुक्रमणिका"
[wordCount]
one = "एक शब्द"
-other = "{{ .Count }} शब्द"
\ No newline at end of file
+other = "{{ .Count }} शब्द"
+
+[lastModified]
+other = "आखरी अपडेट"
From b77f822736e1550e8a9433898c6f1ef4ef76401a Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:52:26 +0000
Subject: [PATCH 07/13] Last updated
---
i18n/it.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/it.toml b/i18n/it.toml
index 6a730e9..f78a5a0 100644
--- a/i18n/it.toml
+++ b/i18n/it.toml
@@ -34,3 +34,6 @@ other = "Contenuti"
[wordCount]
one = "Una parola"
other = "{{ .Count }} parole"
+
+[lastModified]
+other = "Ultimo aggiornamento"
From f0f5525a73d66d8b357c99889ff39efb4a5d9e5a Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:54:37 +0000
Subject: [PATCH 08/13] Last updated - translation needed
---
i18n/lmo.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/lmo.toml b/i18n/lmo.toml
index 64d6a97..7616dda 100644
--- a/i18n/lmo.toml
+++ b/i18n/lmo.toml
@@ -34,3 +34,6 @@ other = "Contegnuu"
[wordCount]
one = "Ona parolla"
other = "{{ .Count }} paroll"
+
+[lastModified]
+other = "Last update"
From 207c1f0fa0d95ca31eb91408e011d3b63f2693d8 Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:55:47 +0000
Subject: [PATCH 09/13] Last updated
---
i18n/ml.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/ml.toml b/i18n/ml.toml
index 0eea4f6..a6aa087 100644
--- a/i18n/ml.toml
+++ b/i18n/ml.toml
@@ -34,3 +34,6 @@ other = "ഉള്ളടക്ക പട്ടിക"
[wordCount]
one = "ഒരു വാക്ക്"
other = "{{ .Count }} വാക്കുകൾ"
+
+[lastModified]
+other = "അവസാനമായി പുതുക്കിയത്"
From b698dd03c9dff38d0535b89392304173c6b17b3c Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:56:26 +0000
Subject: [PATCH 10/13] Last updated
---
i18n/pt-br.toml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/i18n/pt-br.toml b/i18n/pt-br.toml
index 25a6f6c..b53cbcc 100644
--- a/i18n/pt-br.toml
+++ b/i18n/pt-br.toml
@@ -33,4 +33,7 @@ other = "Índice"
[wordCount]
one = "Uma Palavra"
-other = "{{ .Count }} Palavras"
\ No newline at end of file
+other = "{{ .Count }} Palavras"
+
+[lastModified]
+other = "Última actualização"
From 3510b3d019d5506cadb57979a0a17ef5b5afd419 Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:57:21 +0000
Subject: [PATCH 11/13] Last updated
---
i18n/ru.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/ru.toml b/i18n/ru.toml
index 2b75f94..2f16ec4 100644
--- a/i18n/ru.toml
+++ b/i18n/ru.toml
@@ -38,3 +38,6 @@ one = "{{ .Count }} слово"
few = "{{ .Count }} слова"
many = "{{ .Count }} слов"
other = "{{ .Count }} слов"
+
+[lastModified]
+other = "Последнее обновление"
From 25e2e72bad7f7bdfe8c11ef9d46d85d817bc4891 Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 19:58:00 +0000
Subject: [PATCH 12/13] Last updated
---
i18n/tr.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i18n/tr.toml b/i18n/tr.toml
index 4b50e98..df7af32 100644
--- a/i18n/tr.toml
+++ b/i18n/tr.toml
@@ -34,3 +34,6 @@ other = "İçindekiler"
[wordCount]
one = "One Kelime"
other = "{{ .Count }} Kelime"
+
+[lastModified]
+other = "Son güncelleme"
From 29023e89f950291bd8f299a70f7b7889c1eda191 Mon Sep 17 00:00:00 2001
From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com>
Date: Sat, 5 Sep 2020 20:01:49 +0000
Subject: [PATCH 13/13] Use translated "Last updated"
---
layouts/posts/single.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 5313009..b6c0c3d 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -75,7 +75,7 @@
{{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }}
- {{ if .LastMod }} (Last updated: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }}
+ {{ if .LastMod }} ({{ i18n "lastModified" }}: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }}
{{- if .GitInfo }}