Compare commits

..

3 Commits

Author SHA1 Message Date
85bd0b6c9c Switch to left-alignment on small screens to prevent ugly gaps.
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-09 01:48:22 -07:00
b19e8713e0 Center post titles and word counters. 2020-05-09 01:45:53 -07:00
68fb78e765 Only left-justify post titles 2020-05-09 01:41:10 -07:00
5 changed files with 25 additions and 16 deletions

View File

@ -7,6 +7,10 @@ body {
line-height: 1.5;
margin-bottom: 1rem;
text-align: justify;
@include below-container-width {
text-align: left;
}
}
h1, h2, h3, h4, h5, h6 {
@ -171,10 +175,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,16 +185,22 @@ ul.page-list {
padding: 0.5rem;
}
a {
p {
margin: 0;
}
a.post-title {
border-bottom: none;
font-size: 1.3rem;
font-weight: bold;
font-family: $font-heading;
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,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,7 +2,7 @@
{{ .Content }}
Recent posts:
<ul class="page-list">
<ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}
{{ end }}

View File

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