diff options
author | tdro <tdro@noreply.example.com> | 2023-06-01 19:40:16 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-06-01 19:40:16 -0400 |
commit | 8b432c5207f2dede1f9923b86271aafedcd6c624 (patch) | |
tree | 7ec8c107a890853473f7d153f3d0461e263c1139 /themes/default/layouts/_default/section.feeds.html | |
parent | 8720c0f92fa3f37864ea2d0db11502204f60832f (diff) | |
download | canory-8b432c5207f2dede1f9923b86271aafedcd6c624.tar.gz canory-8b432c5207f2dede1f9923b86271aafedcd6c624.tar.bz2 canory-8b432c5207f2dede1f9923b86271aafedcd6c624.zip |
themes/default/layouts/partials/render-embed: Attempt reuse
Format default layouts
Diffstat (limited to 'themes/default/layouts/_default/section.feeds.html')
-rw-r--r-- | themes/default/layouts/_default/section.feeds.html | 32 |
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 -}} |