aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/index.html')
-rw-r--r--themes/default/layouts/_default/index.html31
1 files changed, 14 insertions, 17 deletions
diff --git a/themes/default/layouts/_default/index.html b/themes/default/layouts/_default/index.html
index 5e78371..ed8faca 100644
--- a/themes/default/layouts/_default/index.html
+++ b/themes/default/layouts/_default/index.html
@@ -1,11 +1,10 @@
-{{ define "styles" }}
+{{- define "styles" -}}
<style>
{{ partial "styles-navigator.html" (dict "Link" "/") | safeCSS }}
</style>
-{{ end }}
-
-{{ define "middle" }}
+{{- end -}}
+{{- define "middle" -}}
{{- partial "navigator-middle.html"
(dict
"Context" .
@@ -18,24 +17,22 @@
)
-}}
- {{ range .Paginator.Pages }}
- {{ .Render "summary" }}
- {{ end }}
-
- {{ partial "pagination.html" . }}
+ {{- range .Paginator.Pages -}}
+ {{- partial "render-embed.html" . -}}
+ {{- end -}}
-{{ end }}
+ {{- partial "pagination.html" . -}}
+{{- end -}}
-{{ define "right" }}
+{{- define "right" -}}
{{- partial "author-list.html" . -}}
- {{ range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.gallery) }}
+ {{- range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.gallery) -}}
{{- partial "gallery.html" . -}}
- {{ end }}
+ {{- end -}}
- {{ range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.webring) }}
+ {{- range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.webring) -}}
{{- partial "following-list.html" . -}}
{{- partial "webring.html" . -}}
- {{ end }}
-
-{{ end }}
+ {{- end -}}
+{{- end -}}