We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9774c27 commit c8b5f8bCopy full SHA for c8b5f8b
1 file changed
layouts/partials/page-meta-lastmod.html
@@ -1,7 +1,10 @@
1
-<div class="text-muted mt-5 pt-3 border-top">
2
-{{ if and (.GitInfo) (.Site.Params.github_repo) }}
3
- {{ T "post_last_mod"}}
4
- {{ .Lastmod.Format .Site.Params.time_format_default }}
5
- {{ with .GitInfo }}: <a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>{{ end }}
6
-{{ end }}
+{{ if and .GitInfo .Site.Params.github_repo -}}
+<div class="td-page-meta__lastmod">
+ {{ T "post_last_mod" }} {{ .Lastmod.Format .Site.Params.time_format_default -}}
+ {{ with .GitInfo }}: {{/* Trim WS */ -}}
+ <a data-proofer-ignore href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">
+ {{- .Subject }} ({{ .AbbreviatedHash }}) {{- /* Trim WS */ -}}
7
+ </a>
8
+ {{- end }}
9
</div>
10
+{{ end -}}
0 commit comments