feat: improve formatting

This commit is contained in:
recanman 2024-08-31 22:00:33 -07:00
parent cfd29ad5f0
commit 6cb12d5d4e
2 changed files with 18 additions and 2 deletions

View file

@ -40,6 +40,8 @@ ul.list {
} }
ul.list li { ul.list li {
padding: 0.5em 0; padding: 0.5em 0;
border-top: 2px dashed currentColor;
border-bottom: 2px dashed currentColor;
} }
ul.list li span { ul.list li span {
float: right; float: right;

View file

@ -1,3 +1,17 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }}
<p>
RSS feed <a href="/index.xml">here</a>.
</p>
<h2>Latest Posts</h2>
<ul class="list">
{{- range where .Site.RegularPages "Section" "posts"}}
<li>
<span>{{ .Date.Format "2006-01-02" }}</span>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{- end }}
</ul>
{{ end }} {{ end }}