mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-22 06:52:18 +00:00
add new 'timeless' parameter to suppress the old post warning
This commit is contained in:
parent
c16fdeb374
commit
944da34fa1
3 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,7 @@ numberOfRecentPosts = 6
|
||||||
numberOfRelatedPosts = 6
|
numberOfRelatedPosts = 6
|
||||||
numberOfFeaturedPosts = 4
|
numberOfFeaturedPosts = 4
|
||||||
toc = true
|
toc = true
|
||||||
|
timeless = false
|
||||||
|
|
||||||
## Website author
|
## Website author
|
||||||
[author]
|
[author]
|
||||||
|
|
|
@ -8,6 +8,7 @@ comments = false
|
||||||
toc = false
|
toc = false
|
||||||
featureImage = "/images/bio-photo.jpg"
|
featureImage = "/images/bio-photo.jpg"
|
||||||
usePageBundles = false
|
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!
|
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!
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{{- with .Param "lastmod" -}}
|
{{- with .Param "lastmod" -}}
|
||||||
{{- $ageDays = div (sub now.Unix .Unix) 86400 -}}
|
{{- $ageDays = div (sub now.Unix .Unix) 86400 -}}
|
||||||
{{- end -}}
|
{{- 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>
|
<div class="notices info"><div class="label">{{- T "old_content_label" -}}</div>
|
||||||
<i>{{- T "old_content_note" -}}</i>
|
<i>{{- T "old_content_note" -}}</i>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue