Only left-justify post titles

This commit is contained in:
Danila Fedorin 2020-05-09 01:41:10 -07:00
parent be8a0a4a3a
commit 68fb78e765
5 changed files with 11 additions and 10 deletions

View File

@ -171,10 +171,9 @@ hr.header-divider {
border-radius: 0.15rem;
}
ul.page-list {
ul.post-list {
list-style: none;
padding: 0;
text-align: left;
li {
@include bordered-block;
@ -182,11 +181,13 @@ ul.page-list {
padding: 0.5rem;
}
a {
a.post-title {
border-bottom: none;
font-size: 1.3rem;
font-weight: bold;
font-family: $font-heading;
text-align: left;
display: block;
}
p {

View File

@ -1,7 +1,7 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<ul class="page-list">
<ul class="post-list">
{{ range .Pages.ByDate.Reverse }}
{{ partial "post.html" . }}
{{ end }}

View File

@ -2,9 +2,9 @@
{{ .Content }}
Recent posts:
<ul class="page-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}
{{ end }}
<ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}
{{ end }}
</ul>
{{ end }}

View File

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

View File

@ -1,7 +1,7 @@
{{ define "main" }}
<h2>Tagged "{{ .Title }}"</h2>
<ul class="page-list">
<ul class="post-list">
{{ range .Pages.ByDate.Reverse }}
{{ partial "post.html" . }}
{{ end }}