diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-04-18 20:47:36 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-04-18 20:48:58 +0200 |
commit | 04c13d8007efe2597cad3fe24436368bed73bf1f (patch) | |
tree | 0abb5a7a25fbaf6fe5bcd80687cea022238071c9 /layouts/posts | |
parent | 75d50531769406ef26c408b7f3ada5aa7a7add7b (diff) |
Waste less on whitespace in the blog post list
Diffstat (limited to 'layouts/posts')
-rw-r--r-- | layouts/posts/list.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 1bacf24..21f52c1 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,10 +1,10 @@ -{{ define "main" }} +{{- define "main" }} <h1>{{ .Title }}</h1> {{ .Content }} -{{ range .Sections }} +{{- range .Sections }} <h2>{{ .Title }}</h2> <ul> - {{ range .Pages }} + {{- range .Pages }} <li> <a href="{{ .Permalink }}">{{ .Title }}</a> <small> @@ -14,7 +14,7 @@ {{- end }} </small> </li> - {{ end }} + {{- end }} </ul> - {{ end }} -{{ end }} +{{- end }} +{{- end }} |