From 944da34fa1196a58a2e3fbe63f8f743255c1a84e Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Thu, 17 Mar 2022 15:40:33 -0500 Subject: [PATCH] add new 'timeless' parameter to suppress the old post warning --- config/_default/params.toml | 1 + content/about.md | 1 + layouts/_default/single.html | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index a221d39..c7e6e27 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -29,6 +29,7 @@ numberOfRecentPosts = 6 numberOfRelatedPosts = 6 numberOfFeaturedPosts = 4 toc = true +timeless = false ## Website author [author] diff --git a/content/about.md b/content/about.md index c4c6548..4fcbe72 100644 --- a/content/about.md +++ b/content/about.md @@ -8,6 +8,7 @@ comments = false toc = false featureImage = "/images/bio-photo.jpg" usePageBundles = false +timeless = true +++ By day, I manage a large virtualized server environment, with a focus on learning to leverage cloud and automation technologies to make that task a bit easier. My big project from the past year or so has been a VMware vRealize Automation implementation to streamline our server deployments, and I've been sharing some of what I've learned in that process here on Virtually Potato, primarily in the [vRA8 series of posts](/series/vra8). I don't have a strong development background (knowing just enough to be dangerous) so I do a lot of fumbling along the way, but I'm _generally_ make things work the way I want them to. And hopefully some of the notes I've made along the way might help someone else with their own projects! diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1dc6666..c4c0051 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -18,7 +18,7 @@ {{- with .Param "lastmod" -}} {{- $ageDays = div (sub now.Unix .Unix) 86400 -}} {{- end -}} - {{- if gt $ageDays 365 -}} + {{- if and (gt $ageDays 365) (not $p.timeless) -}}
{{- T "old_content_label" -}}
{{- T "old_content_note" -}}