From f24f2d15275961f1c0144e68fde75a60aeaaa165 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 23 Jan 2023 22:20:47 -0500 Subject: move to bear theme --- .../partials/post/outdated-info-warning.html | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 themes/even/layouts/partials/post/outdated-info-warning.html (limited to 'themes/even/layouts/partials/post/outdated-info-warning.html') diff --git a/themes/even/layouts/partials/post/outdated-info-warning.html b/themes/even/layouts/partials/post/outdated-info-warning.html deleted file mode 100644 index 3736c13..0000000 --- a/themes/even/layouts/partials/post/outdated-info-warning.html +++ /dev/null @@ -1,28 +0,0 @@ -{{- if or .Params.enableOutdatedInfoWarning (and .Site.Params.outdatedInfoWarning.enable (ne .Params.enableOutdatedInfoWarning false)) }} - {{- $daysAgo := div (sub now.Unix .Lastmod.Unix) 86400 }} - {{- $hintThreshold := .Site.Params.outdatedInfoWarning.hint | default 30 }} - {{- $warnThreshold := .Site.Params.outdatedInfoWarning.warn | default 180 }} - - {{- $updateTime := .Lastmod }} - {{- if .GitInfo }} - {{- if lt .GitInfo.AuthorDate.Unix .Lastmod.Unix }} - {{- $updateTime := .GitInfo.AuthorDate }} - {{- end }} - {{- end -}} - - {{- if gt $daysAgo $hintThreshold }} -
- {{- if gt $daysAgo $warnThreshold }} -
- {{- else }} -
- {{- end }} -

{{ T "outdatedInfoWarningBefore" -}} - - {{- dateFormat "January 2, 2006" $updateTime -}} - {{ T "outdatedInfoWarningAfter" -}} -

-
-
- {{- end -}} -{{- end -}} -- cgit v1.2.3