fix(docs): lastmod

This commit is contained in:
nevfy 2024-06-19 12:10:18 +03:00
parent bd3195125e
commit 0eb8f29d7f

View file

@ -1,10 +1,10 @@
{{ if and .GitInfo .Site.Params.github_repo -}} {{ if and .GitInfo .Site.Params.github_repo -}}
<div class="td-page-meta__lastmod"> <div class="td-page-meta__lastmod">
{{ T "post_last_mod" }} {{ .Lastmod.Format .Site.Params.time_format_default -}} {{ T "post_last_mod" }}:
{{ with .GitInfo }}: {{/* Trim WS */ -}} {{ with .GitInfo }} {{/* Trim WS */ -}}
<a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}"> <a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">
{{- .Subject }} ({{ .AbbreviatedHash }}) {{- /* Trim WS */ -}} {{- end }}
{{ .Lastmod | time.Format ":date_long" }}
</a> </a>
{{- end }} </div>
</div>
{{ end -}} {{ end -}}