Skip to content

Commit

Permalink
Merge pull request #1147 from chainguard-dev/surface-content-date
Browse files Browse the repository at this point in the history
Surface Last Update Info on Content Pages
  • Loading branch information
erikaheidi authored Nov 20, 2023
2 parents 4e1a614 + 7b9ee87 commit 0a56c44
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions layouts/article/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
<span class="pills-text">{{ $parentTitle }}</span>
</a>
</div>
</div>

{{ if not .Params.hide_title -}}
<h1>{{ .Title }}</h1>
Expand Down Expand Up @@ -68,15 +68,15 @@ <h1>{{ .Title }}</h1>
{{end}}
</div>
{{end}}

{{ if .Params.images }}
<div class="mt-4">
{{range .Params.images}}
<img class="attached-image--border mt-3" src="{{.}}" alt="Attached Image">
{{end}}
</div>
{{ end }}

<!-- {{ if ne .Params.toc false -}}
<nav class="d-xl-none" aria-label="Quaternary navigation">
{{ partial "sidebar/docs-toc.html" . }}
Expand All @@ -87,14 +87,25 @@ <h1>{{ .Title }}</h1>
{{ partial "rumble-vuln.html" . }}
<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 -}}
<!-- {{ if .Site.Params.lastMod -}}
{{ partial "main/last-modified.html" . }}
{{ end -}}
{{ if .Site.Params.editPage -}}
{{ partial "main/edit-page.html" . }}
{{ end -}}
{{ if .Params.lastmod }}
<p>Last updated: {{ time.Format "January 2, 2006" .Params.lastmod }}</p>
{{ end }}-->
</div>

<!-- <a class="btn cta-button" href="https://www.chainguard.dev/contact?utm_source=docs">Contact Us</a> -->
Expand Down

0 comments on commit 0a56c44

Please sign in to comment.