Merge pull request #273 from henryiii/henryiii-lastmod
Adding last modified for pages if lastmod is set
This commit is contained in:
commit
3836f4c24a
|
@ -1,3 +1,6 @@
|
|||
{{ if eq .Type "page" }}
|
||||
{{ partial "page_meta.html" . }}
|
||||
{{ end }}
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<div class="page-meta">
|
||||
{{ $lastmodstr := default (i18n "dateFormat") .Site.Params.dateformat | .Lastmod.Format }}
|
||||
{{ $datestr := default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format }}
|
||||
{{ if ne $datestr $lastmodstr }}
|
||||
{{ $lastmodstr | i18n "lastModified" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
@ -370,14 +370,19 @@ footer .theme-by {
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
.post-preview .post-meta,
|
||||
.post-heading .post-meta {
|
||||
.post-heading .post-meta,
|
||||
.page-meta {
|
||||
color: #808080;
|
||||
font-size: 18px;
|
||||
font-style: italic;
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.page-meta {
|
||||
align-self: center;
|
||||
}
|
||||
.post-preview .post-meta a,
|
||||
.post-heading .post-meta a {
|
||||
.post-heading .post-meta a,
|
||||
.page-meta a {
|
||||
color: #404040;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue