feat(article): display last updated time of a post
This commit is contained in:
parent
3742a0775b
commit
0cac2218e3
@ -71,14 +71,20 @@
|
|||||||
padding: var(--content-padding);
|
padding: var(--content-padding);
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
|
|
||||||
.article-copyright {
|
section:not(:first-child) {
|
||||||
margin-top: var(--content-padding);
|
margin-top: var(--content-padding);
|
||||||
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
color: var(--card-text-color-tertiary);
|
color: var(--card-text-color-tertiary);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
stroke-width: 1.33;
|
stroke-width: 1.33;
|
||||||
}
|
}
|
||||||
|
@ -13,4 +13,11 @@
|
|||||||
<span>{{ default .Site.Params.article.license.default .Params.license }}</span>
|
<span>{{ default .Site.Params.article.license.default .Params.license }}</span>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{- if not .Lastmod.IsZero -}}
|
||||||
|
<section class="article-time">
|
||||||
|
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
|
||||||
|
<span class="article-time--modified">Last updated on {{ .Lastmod.Format ( or .Site.Params.dateFormat "Jan 02, 2006 15:04 MST" ) }}</span>
|
||||||
|
</section>
|
||||||
|
{{- end -}}
|
||||||
</footer>
|
</footer>
|
Loading…
Reference in New Issue
Block a user