Fix some styling

This commit is contained in:
Daniel Flanagan 2024-06-14 10:36:05 -05:00
parent 19b67010cc
commit 4adc38883c
2 changed files with 15 additions and 11 deletions

View file

@ -1,11 +1,13 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }} {{ .Content }}
{{ range .Pages }} <ul style="padding: 0;">
{{ .Render "li" }} {{ range .Pages }}
{{ else }} {{ .Render "li" }}
<p>Looks like there's nothing here!... yet!</p> {{ else }}
{{ end }} <p>Looks like there's nothing here!... yet!</p>
{{ end }}
</ul>
{{ end }} {{ end }}

View file

@ -1,10 +1,12 @@
<p class="left-border"> <div class="left-border">
<h3> <h3>
<a style="flex-shrink: 1; margin-right: auto;" href="{{ .Permalink }}"> <a style="flex-shrink: 1; margin-right: auto;" href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Title }} {{ if .Draft }}<span class="badge">DRAFT</span>{{end}}
</a>
<br /> <br />
<small>Posted on {{ dateFormat "Jan 2 2006" (cond .Date.IsZero .Lastmod .Date) }}</small> <small>Posted on {{ dateFormat "Jan 2 2006" (cond .Date.IsZero .Lastmod .Date) }}</small>
</h3> </h3>
{{ .Summary }}
</p> <p>
{{ .Summary }}
</p>
</div>