Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions assets/scss/_pageinfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@
}

}

.td-page-meta {
&__lastmod {
@extend .text-muted;
@extend .border-top;
margin-top: map-get($spacers, 5) !important;
padding-top: map-get($spacers, 3) !important;
}
}
15 changes: 9 additions & 6 deletions layouts/partials/page-meta-lastmod.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<div class="text-muted mt-5 pt-3 border-top">
{{ if and (.GitInfo) (.Site.Params.github_repo) }}
{{ T "post_last_mod"}}
{{ .Lastmod.Format .Site.Params.time_format_default }}
{{ with .GitInfo }}: <a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>{{ end }}
{{ 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 */ -}}
</a>
{{- end }}
</div>
{{ end -}}