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; padding: 0.5rem;
} }
p {
margin: 0;
}
a.post-title { a.post-title {
border-bottom: none; border-bottom: none;
font-size: 1.3rem; font-size: 1.3rem;
font-weight: bold; font-weight: bold;
font-family: $font-heading; font-family: $font-heading;
text-align: left; text-align: center;
display: block; display: block;
} }
p { p.post-wordcount {
margin-bottom: 0; text-align: center;
margin-top: 0.2rem; margin-bottom: 0.6rem;
} }
} }

View File

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