Only left-justify post titles

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

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 }}