Merge pull request 'Remove commit messages from last modified text' (#151) from nevfy/selfprivacy.org:fix-lastmod into master

Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org/pulls/151
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
This commit is contained in:
Inex Code 2024-07-01 14:31:00 +03:00
commit 8bac943102

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 */ -}} {{ $.Lastmod | time.Format ":date_long" }}
</a> </a>
{{- end }} {{- end }}
</div> </div>
{{ end -}} {{ end -}}