mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-02 08:08:32 -04:00
Add support for lastmod (#19)
This commit is contained in:
parent
2a641ceb99
commit
3e7256c7ea
|
@ -43,7 +43,7 @@ main#content ul#posts li a:hover {
|
|||
color: #21c7ff;
|
||||
}
|
||||
|
||||
main#content header#post-header time {
|
||||
main#content header#post-header div {
|
||||
color: #a7a7a7;
|
||||
}
|
||||
{{- if not (eq .Site.Params.dark "on") -}}
|
||||
|
|
|
@ -142,7 +142,7 @@ main#content header#post-header h1 {
|
|||
line-height: 1.15;
|
||||
}
|
||||
|
||||
main#content header#post-header time {
|
||||
main#content header#post-header div {
|
||||
display: block;
|
||||
font-size: 0.85em;
|
||||
color: #767676;
|
||||
|
|
|
@ -2,9 +2,15 @@
|
|||
<article>
|
||||
<header id="post-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{- if isset .Params "date" -}}
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{- end -}}
|
||||
<div>
|
||||
{{- if isset .Params "date" -}}
|
||||
{{ if eq .Lastmod .Date }}
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ else }}
|
||||
Updated <time>{{ .Lastmod.Format "January 2, 2006" }}</time>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
</div>
|
||||
</header>
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
|
|
Loading…
Reference in a new issue