Clean up after the last commit

This commit is contained in:
BBaoVanC 2021-10-09 22:33:18 -05:00
parent f3274c67fc
commit cc20b09e8e
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 19 additions and 20 deletions

View File

@ -17,26 +17,23 @@
text-decoration: inherit; text-decoration: inherit;
} }
.post-description { .post-meta-item {
margin-top: 10px; margin-right: 5px;
white-space: nowrap;
} }
.post-media { .post-media {
margin-top: 15px; margin-top: 15px;
} }
.post-description {
margin-top: 10px;
}
.readmore { .readmore {
margin-top: 5px; margin-top: 5px;
} }
(.date, .wordcount, .readingtime, .gitcommit, .tag) + (.date, .wordcount, .readingtime, .gitcommit, .tag) {
margin-left: 5px;
}
.post-meta-item {
white-space: nowrap;
}
h1 svg.icon { h1 svg.icon {
width: 30px; width: 30px;
height: 30px; height: 30px;

View File

@ -2,7 +2,7 @@
<div class="post-metadata"> <div class="post-metadata">
{{ if .Date }} {{ if .Date }}
<span class="post-meta-item date"> <span class="post-meta-item">
{{ partial "icon.html" "calendar" }} {{ partial "icon.html" "calendar" }}
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate> <time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
{{ .Date.Format "January 2, 2006" }} {{ .Date.Format "January 2, 2006" }}
@ -18,21 +18,21 @@
</span> </span>
{{ if .Site.Params.wordcount }} {{ if .Site.Params.wordcount }}
<span class="post-meta-item wordcount"> <span class="post-meta-item">
{{ partial "icon.html" "type" }} {{ partial "icon.html" "type" }}
{{ .WordCount }} words {{ .WordCount }} words
</span> </span>
{{ end }} {{ end }}
{{ if .Site.Params.readingtime }} {{ if .Site.Params.readingtime }}
<span class="post-meta-item readingtime"> <span class="post-meta-item">
{{ partial "icon.html" "clock" }} {{ partial "icon.html" "clock" }}
{{ .ReadingTime }} {{ if gt .ReadingTime 1 }} mins {{ else }} min {{ end }} {{ .ReadingTime }} {{ if gt .ReadingTime 1 }} mins {{ else }} min {{ end }}
</span> </span>
{{ end }} {{ end }}
{{ with .GitInfo }} {{ with .GitInfo }}
<span class="post-meta-item gitcommit"> <span class="post-meta-item">
{{ partial "icon.html" "git-commit" }} {{ partial "icon.html" "git-commit" }}
<a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absURL }}"> <a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absURL }}">
<code>{{ .AbbreviatedHash }}</code> <code>{{ .AbbreviatedHash }}</code>
@ -40,11 +40,13 @@
</span> </span>
{{ end }} {{ end }}
<div class="tags">
{{ range (.GetTerms "tags") }} {{ range (.GetTerms "tags") }}
<span class="post-meta-item tag"> <span class="post-meta-item">
{{ partial "icon.html" "tag" }} {{ partial "icon.html" "tag" }}
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a> <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</span> </span>
{{ end }} {{ end }}
</div>
</div> </div>
{{ end }} {{ end }}