Skip to content

Commit

Permalink
Added clause to hide lastmod if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
erikaheidi committed Nov 17, 2023
1 parent f18eedc commit 7b9ee87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/article/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ <h1>{{ .Title }}</h1>
<div class="mb-5"></div>
{{ .Content }}

{{ if not .Params.hide_lastmod -}}
{{ if .Params.lastmod }}
<div class="d-block border-top mt-5 pt-2">
<p class="text-muted fst-italic fs-6">Last updated: {{ time.Format "2006-01-02 15:04" .Params.lastmod }}</p>
</div>
{{ end }}
{{ end -}}

<div class="page-footer-meta d-flex flex-column flex-md-row justify-content-between">
<!-- {{ if .Site.Params.lastMod -}}
Expand Down

0 comments on commit 7b9ee87

Please sign in to comment.