aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/section.likes.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-12-30 16:39:52 -0500
committertdro <tdro@noreply.example.com>2023-12-30 16:39:52 -0500
commit088ff760327f0e7f3d1e4d734442cb1a6b151f64 (patch)
tree80ef8eb9b7b9e0574e4a3b5290f5055214f1343f /themes/default/layouts/_default/section.likes.html
parentfad87c5cc042ea293b3d5cd7a139d124dce1cbd4 (diff)
downloadcanory-088ff760327f0e7f3d1e4d734442cb1a6b151f64.tar.gz
canory-088ff760327f0e7f3d1e4d734442cb1a6b151f64.tar.bz2
canory-088ff760327f0e7f3d1e4d734442cb1a6b151f64.zip
config: Likes -> Marked
Diffstat (limited to 'themes/default/layouts/_default/section.likes.html')
-rw-r--r--themes/default/layouts/_default/section.likes.html58
1 files changed, 0 insertions, 58 deletions
diff --git a/themes/default/layouts/_default/section.likes.html b/themes/default/layouts/_default/section.likes.html
deleted file mode 100644
index 5626344..0000000
--- a/themes/default/layouts/_default/section.likes.html
+++ /dev/null
@@ -1,58 +0,0 @@
-{{- define "styles" -}}
-{{- $author := partial "function-authors-data.html" . -}}
-{{- $author = $author.user -}}
-<style>
- {{ partial "navigator.css.html" (dict "Link" "/") | safeCSS }}
-
- tab-bar a[href^="{{ "" | absURL }}/{{ $author }}/likes"] {
- color: #111;
- color: var(--foreground);
- font-weight: 700;
- text-decoration-color: #014cc6;
- text-decoration-color: var(--link);
- text-decoration: underline;
- border-bottom: 2px solid var(--background);
- }
-</style>
-{{- end -}}
-
-{{- define "header" -}}
- {{- $author := partial "function-authors-data.html" . -}}
- {{- $authors := where .Site.RegularPages "Section" $author.user -}}
- {{- $likes := where .Site.RegularPages ".Params.liked" true -}}
- {{- $filteredPages := $authors | intersect $likes -}}
- {{- $paginator := .Paginate $filteredPages -}}
-
- {{- partial "navigator-middle.html"
- (dict
- "Context" .
- "IconLabel" "Back"
- "Id" "back"
- "Title" "Likes"
- "Icon" "arrow-left"
- "Subtitle" (print (partial "count-likes.html" .) " " "Total")
- "Href" (or (and (gt $paginator.PageNumber 1) ($paginator.Prev.URL | absURL)) "/")
- )
- -}}
-
- {{- partial "profile.html" . -}}
-{{- end -}}
-
-{{- define "middle" -}}
- {{- range .Paginator.Pages -}}
- {{- partial "render-embed.html" . -}}
- {{- else -}}
- <footer>
- <code>No items found!</code>
- </footer>
- {{- end -}}
-{{- end -}}
-
-{{- define "footer" -}}
- {{- partial "pagination.html" . -}}
- {{- partial "base-footer.html" . -}}
-{{- end -}}
-
-{{- define "right" -}}
- {{- partial "navigator-right.html" . -}}
-{{- end -}}