Compare commits

..

No commits in common. "85bd0b6c9c0d588363bfad1d32f8e2fc6d080531" and "be8a0a4a3aee3d31ef082c67cb82b4fea851c099" have entirely different histories.

5 changed files with 16 additions and 25 deletions

View File

@ -7,10 +7,6 @@ body {
line-height: 1.5;
margin-bottom: 1rem;
text-align: justify;
@include below-container-width {
text-align: left;
}
}
h1, h2, h3, h4, h5, h6 {
@ -175,9 +171,10 @@ hr.header-divider {
border-radius: 0.15rem;
}
ul.post-list {
ul.page-list {
list-style: none;
padding: 0;
text-align: left;
li {
@include bordered-block;
@ -185,22 +182,16 @@ ul.post-list {
padding: 0.5rem;
}
p {
margin: 0;
}
a.post-title {
a {
border-bottom: none;
font-size: 1.3rem;
font-weight: bold;
font-family: $font-heading;
text-align: center;
display: block;
}
p.post-wordcount {
text-align: center;
margin-bottom: 0.6rem;
p {
margin-bottom: 0;
margin-top: 0.2rem;
}
}

View File

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

View File

@ -2,9 +2,9 @@
{{ .Content }}
Recent posts:
<ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}
{{ end }}
<ul class="page-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 }}" class="post-title">{{ .Title }}</a>
<p class="post-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
<p class="post-preview">{{ .Summary }} . . .</p>
<a href="{{ .Permalink }}">{{ .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="post-list">
<ul class="page-list">
{{ range .Pages.ByDate.Reverse }}
{{ partial "post.html" . }}
{{ end }}