Merge pull request #2 from recanman/main

feat: improve formatting
This commit is contained in:
rottenwheel 2024-09-01 00:02:44 -05:00 committed by GitHub
commit a73f59ac85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 }}
{{ end }} <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 }}