From 88a7c814ff46765208c605e7e2af3fe37b8e6ad7 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 20 Dec 2021 16:22:31 -0600 Subject: [PATCH] set icon for updated posts --- i18n/en.toml | 5 +-- layouts/partials/icons.html | 64 +++++++++++++++++++++++++++++++++ layouts/partials/post-meta.html | 2 +- 3 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 layouts/partials/icons.html diff --git a/i18n/en.toml b/i18n/en.toml index 8385e2c..1356959 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -11,7 +11,4 @@ other = "All Rights Reserved" other = "Powered by" [and] -other = "and" - -[updated] -other = "Updated" \ No newline at end of file +other = "and" \ No newline at end of file diff --git a/layouts/partials/icons.html b/layouts/partials/icons.html new file mode 100644 index 0000000..852ef1a --- /dev/null +++ b/layouts/partials/icons.html @@ -0,0 +1,64 @@ + diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index ac4c63d..843f844 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -12,7 +12,7 @@ {{- if $showDate }} {{ partial "sprite" (dict "icon" "calendar") }} - {{ $postDate -}}{{- if ne $postDate $updateDate }} ({{ T "updated" }}: {{ $updateDate -}}){{- end }} + {{ $postDate -}}{{- if ne $postDate $updateDate }} {{- partial "sprite" (dict "icon" "edit") -}}{{- $updateDate -}}{{- end }} {{- $scratch.Set "writeSeparator" true }} {{- end }}