aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts
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
parentfad87c5cc042ea293b3d5cd7a139d124dce1cbd4 (diff)
downloadcanory-088ff760327f0e7f3d1e4d734442cb1a6b151f64.tar.gz
canory-088ff760327f0e7f3d1e4d734442cb1a6b151f64.tar.bz2
canory-088ff760327f0e7f3d1e4d734442cb1a6b151f64.zip
config: Likes -> Marked
Diffstat (limited to 'themes/default/layouts')
-rw-r--r--themes/default/layouts/_default/section.marks.html (renamed from themes/default/layouts/_default/section.likes.html)10
-rw-r--r--themes/default/layouts/partials/count-likes.html12
-rw-r--r--themes/default/layouts/partials/count-marks.html11
-rw-r--r--themes/default/layouts/partials/generate-authors.html4
-rw-r--r--themes/default/layouts/partials/meta-anchored.html10
-rw-r--r--themes/default/layouts/partials/profile-tabs.html2
6 files changed, 24 insertions, 25 deletions
diff --git a/themes/default/layouts/_default/section.likes.html b/themes/default/layouts/_default/section.marks.html
index 5626344..5b6cea0 100644
--- a/themes/default/layouts/_default/section.likes.html
+++ b/themes/default/layouts/_default/section.marks.html
@@ -4,7 +4,7 @@
<style>
{{ partial "navigator.css.html" (dict "Link" "/") | safeCSS }}
- tab-bar a[href^="{{ "" | absURL }}/{{ $author }}/likes"] {
+ tab-bar a[href^="{{ "" | absURL }}/{{ $author }}/marks"] {
color: #111;
color: var(--foreground);
font-weight: 700;
@@ -19,8 +19,8 @@
{{- 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 -}}
+ {{- $items := where .Site.RegularPages ".Params.marked" true -}}
+ {{- $filteredPages := $authors | intersect $items -}}
{{- $paginator := .Paginate $filteredPages -}}
{{- partial "navigator-middle.html"
@@ -28,9 +28,9 @@
"Context" .
"IconLabel" "Back"
"Id" "back"
- "Title" "Likes"
+ "Title" "Marks"
"Icon" "arrow-left"
- "Subtitle" (print (partial "count-likes.html" .) " " "Total")
+ "Subtitle" (print (partial "count-marks.html" .) " " "Total")
"Href" (or (and (gt $paginator.PageNumber 1) ($paginator.Prev.URL | absURL)) "/")
)
-}}
diff --git a/themes/default/layouts/partials/count-likes.html b/themes/default/layouts/partials/count-likes.html
deleted file mode 100644
index e9a2d09..0000000
--- a/themes/default/layouts/partials/count-likes.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{- $author := partial "function-authors-data.html" . -}}
-{{- $count := 0 -}}
-
-{{- $likes := where .Site.RegularPages ".Params.liked" true -}}
-{{- $authors := where .Site.RegularPages "Section" $author.user -}}
-{{- $filteredPages := $authors | intersect $likes -}}
-
-{{- range $filteredPages -}}
- {{- $count = add $count 1 -}}
-{{- end -}}
-
-{{- print (lang.FormatNumberCustom 0 $count) -}}
diff --git a/themes/default/layouts/partials/count-marks.html b/themes/default/layouts/partials/count-marks.html
new file mode 100644
index 0000000..b251555
--- /dev/null
+++ b/themes/default/layouts/partials/count-marks.html
@@ -0,0 +1,11 @@
+{{- $count := 0 -}}
+{{- $author := .Section -}}
+{{- $items := where .Site.RegularPages ".Params.marked" true -}}
+{{- $authors := where .Site.RegularPages "Section" $author -}}
+{{- $filteredPages := $authors | intersect $items -}}
+
+{{- range $filteredPages -}}
+ {{- $count = add $count 1 -}}
+{{- end -}}
+
+{{- print (lang.FormatNumberCustom 0 $count) -}}
diff --git a/themes/default/layouts/partials/generate-authors.html b/themes/default/layouts/partials/generate-authors.html
index a0fd825..29c991d 100644
--- a/themes/default/layouts/partials/generate-authors.html
+++ b/themes/default/layouts/partials/generate-authors.html
@@ -48,10 +48,10 @@
{{- $writeToFile := $template.Permalink -}}
{{- $template := resources.ExecuteAsTemplate
- (print "/data/generates/content/" $author "/likes/" "_index.md")
+ (print "/data/generates/content/" $author "/marks/" "_index.md")
(dict
"author" $author
- "layout" "section.likes"
+ "layout" "section.marks"
)
$markdown
-}}
diff --git a/themes/default/layouts/partials/meta-anchored.html b/themes/default/layouts/partials/meta-anchored.html
index 31b910f..431fa64 100644
--- a/themes/default/layouts/partials/meta-anchored.html
+++ b/themes/default/layouts/partials/meta-anchored.html
@@ -9,11 +9,11 @@
</anchored-pinned>
{{ end }}
- {{ if .Params.Liked }}
- <anchored-liked>
- {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/heart.svg")) }}
- <span>Liked</span>
- </anchored-liked>
+ {{ if .Params.Marked }}
+ <anchored-marked>
+ {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/bookmark.svg")) }}
+ <span>Marked</span>
+ </anchored-marked>
{{ end }}
</micro-metadata-anchored>
{{ end }}
diff --git a/themes/default/layouts/partials/profile-tabs.html b/themes/default/layouts/partials/profile-tabs.html
index ec87076..1ca632b 100644
--- a/themes/default/layouts/partials/profile-tabs.html
+++ b/themes/default/layouts/partials/profile-tabs.html
@@ -25,7 +25,7 @@
</a>
<a
- data-label="{{ $label := "Likes" }}{{ $label }}"
+ data-label="{{ $label := "Marks" }}{{ $label }}"
href="{{ $path }}/{{ lower $label }}/#{{ lower $label }}">
{{ $label }}
<span data-scroll="" id="{{ lower $label }}"></span>