add new 'timeless' parameter to suppress the old post warning

This commit is contained in:
John Bowdre 2022-03-17 15:40:33 -05:00
parent c16fdeb374
commit 944da34fa1
3 changed files with 3 additions and 1 deletions

View file

@ -29,6 +29,7 @@ numberOfRecentPosts = 6
numberOfRelatedPosts = 6
numberOfFeaturedPosts = 4
toc = true
timeless = false
## Website author
[author]

View file

@ -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!

View file

@ -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) -}}
<div class="notices info"><div class="label">{{- T "old_content_label" -}}</div>
<i>{{- T "old_content_note" -}}</i>
</div>