aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/section.feeds.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/section.feeds.html')
-rw-r--r--themes/default/layouts/_default/section.feeds.html32
1 files changed, 15 insertions, 17 deletions
diff --git a/themes/default/layouts/_default/section.feeds.html b/themes/default/layouts/_default/section.feeds.html
index f315c32..be65683 100644
--- a/themes/default/layouts/_default/section.feeds.html
+++ b/themes/default/layouts/_default/section.feeds.html
@@ -1,4 +1,4 @@
-{{ define "styles" }}
+{{- define "styles" -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $author = $author.user -}}
<style>
@@ -14,11 +14,10 @@
text-decoration: underline;
}
</style>
-{{ end }}
+{{- end -}}
-{{ define "middle" }}
-
- {{ partial "navigator-middle.html"
+{{- define "middle" -}}
+ {{- partial "navigator-middle.html"
(dict
"Context" .
"IconLabel" "Back"
@@ -28,24 +27,23 @@
"Subtitle" (partial "count-feeds.html" .)
"Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/")
)
- }}
+ -}}
- {{ partial "profile.html" . }}
+ {{- partial "profile.html" . -}}
- {{ range .Paginator.Pages }}
- {{ .Render "summary" }}
- {{ else }}
+ {{- range .Paginator.Pages -}}
+ {{- partial "render-embed.html" . -}}
+ {{- else -}}
<footer>
<code>No feeds found!</code>
</footer>
- {{ end }}
-
- {{ partial "pagination.html" . }}
+ {{- end -}}
- {{ $writeToFile := partial "function-generate-feeds" . }}
+ {{- partial "pagination.html" . -}}
-{{ end }}
+ {{- $writeToFile := partial "function-generate-feeds" . -}}
+{{- end -}}
-{{ define "right" }}
+{{- define "right" -}}
{{- partial "navigator-right.html" . -}}
-{{ end }}
+{{- end -}}