diff options
author | tdro <tdro@noreply.example.com> | 2025-03-12 00:00:00 +0000 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2025-03-12 00:00:00 +0000 |
commit | ae2a4f25779ae58487de14174b40db115b3b923d (patch) | |
tree | b512a5d970f23e2cd9ecd550b767001ae6b3808d | |
parent | 3993dd679bc8d7cc6d34650cb9a6e92f4dcb570f (diff) | |
download | canory-ae2a4f25779ae58487de14174b40db115b3b923d.tar.gz canory-ae2a4f25779ae58487de14174b40db115b3b923d.tar.bz2 canory-ae2a4f25779ae58487de14174b40db115b3b923d.zip |
themes/default/layouts/partials/function-page-modified: Always render expiries
-rw-r--r-- | themes/default/layouts/partials/function-page-modified.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/function-page-modified.html b/themes/default/layouts/partials/function-page-modified.html index 5a48012..1c50291 100644 --- a/themes/default/layouts/partials/function-page-modified.html +++ b/themes/default/layouts/partials/function-page-modified.html @@ -24,6 +24,10 @@ {{- if (in $segments.render.kinds "page") -}} {{- $modified = gt (sub $markTime $pageTime) 0 -}} {{- end -}} +{{- if $pageContext.Page.Params.ExpiryDate -}} + {{- $modified = true -}} +{{- end -}} + {{- if or (not (isset $segments.render "kinds")) (and (in $segments.render.kinds "home") (in "home" $pageContext.Page.Kind)) |