Fix whitespace in modified date and add padding-left to tags

This commit is contained in:
BBaoVanC 2021-10-02 16:35:24 -05:00
parent bed4a9b74a
commit 0067109d4a
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 9 additions and 11 deletions

View File

@ -27,6 +27,10 @@
padding-top: 5px; padding-top: 5px;
} }
.tags {
padding-left: 5px;
}
body { body {
margin: auto; margin: auto;
max-width: 720px; max-width: 720px;

View File

@ -21,12 +21,9 @@
{{ .Date.Format "January 2, 2006" }} {{ .Date.Format "January 2, 2006" }}
</time> </time>
{{ if ne .Lastmod .Date }} {{ if ne .Lastmod .Date }}
( Modified <time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
<time datetime="{{ .Lastmod.Format "January 2, 2006" }}" pubdate> (Modified {{ .Lastmod.Format "January 2, 2006" }})
{{ .Lastmod.Format "January 2, 2006" }}
</time> </time>
) <!-- I don't know how to get rid of the whitespace in between here,
so I'll just live with it for now. -->
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -5,16 +5,13 @@
<div class="post-metadata"> <div class="post-metadata">
{{ if .Date }} {{ if .Date }}
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate> <time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
{{ .Date.Format "January 2, 2006" }} {{ .Date.Format "January 2, 2006" }}
</time> </time>
{{ if ne .Lastmod .Date }} {{ if ne .Lastmod .Date }}
( Modified <time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
<time datetime="{{ .Lastmod.Format "January 2, 2006" }}" pubdate> (Modified {{ .Lastmod.Format "January 2, 2006" }})
{{ .Lastmod.Format "January 2, 2006" }}
</time> </time>
) <!-- I don't know how to get rid of the whitespace in between here,
so I'll just live with it for now. -->
{{ end }} {{ end }}
{{ end }} {{ end }}