Center post titles and word counters.

This commit is contained in:
Danila Fedorin 2020-05-09 01:45:53 -07:00
parent 68fb78e765
commit b19e8713e0
2 changed files with 11 additions and 7 deletions

View File

@ -181,18 +181,22 @@ ul.post-list {
padding: 0.5rem;
}
p {
margin: 0;
}
a.post-title {
border-bottom: none;
font-size: 1.3rem;
font-weight: bold;
font-family: $font-heading;
text-align: left;
text-align: center;
display: block;
}
p {
margin-bottom: 0;
margin-top: 0.2rem;
p.post-wordcount {
text-align: center;
margin-bottom: 0.6rem;
}
}

View File

@ -1,5 +1,5 @@
<li>
<a href="{{ .Permalink }}" class="post-title">{{ .Title }}</a>
<p>{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
<p>{{ .Summary }} . . .</p>
<p class="post-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
<p class="post-preview">{{ .Summary }} . . .</p>
</li>