From 12ac3f699332ab8e735672cd067ba415d78f0fe1 Mon Sep 17 00:00:00 2001
From: KemoNine
Date: Tue, 21 Mar 2023 09:32:30 -0400
Subject: [PATCH] major update for jump links: \ \ - make toc/top phrase
dynamic based on if toc is enabled for a page \ - add a 'jump to content'
link at top of page detail/header block \ - add additional jump links to
footer that are shown only if the relevant section of the page \
detail/header block is shown \ - improve phrasing of jump links appearing
inside main page content \ - update changelog to not have a jump link just
below its title \ - update cms configs to match changed changelog formatting
---
content/tips/_example.md | 1 -
content/tips/_template.md | 2 --
content/tips/faq-contributing.md | 2 --
content/tips/organizers-bujo.md | 2 --
content/tips/organizers-gtd.md | 2 --
content/tips/organizers.md | 2 --
.../layouts/partials/categories_tags.html | 15 ++++++++--
themes/hugo-xmin/layouts/partials/footer.html | 29 +++++++++++++++++--
.../hugo-xmin/layouts/partials/page_meta.html | 5 ++++
.../layouts/shortcodes/back_to_top.html | 4 +++
.../layouts/shortcodes/end_section.html | 4 +++
.../hugo-xmin/static/admin/desktop/config.yml | 4 ---
.../hugo-xmin/static/admin/mobile/config.yml | 6 +---
13 files changed, 52 insertions(+), 26 deletions(-)
diff --git a/content/tips/_example.md b/content/tips/_example.md
index dfc7fef..346ecdc 100644
--- a/content/tips/_example.md
+++ b/content/tips/_example.md
@@ -17,7 +17,6 @@ tags:
## Changelog
{{< changelog >}}
-{{< back_to_top >}}
{{< change 2023-03-17 "test change 1" >}}
{{< change 2023-03-18 "test change 2" >}}
{{< /changelog >}}
diff --git a/content/tips/_template.md b/content/tips/_template.md
index 8618dc9..a0f5537 100644
--- a/content/tips/_template.md
+++ b/content/tips/_template.md
@@ -15,8 +15,6 @@ tags:
---
## Changelog
-{{< back_to_top >}}
-
{{< changelog >}}
{{< change 1900-12-30 "Add additional detail, tags" >}}
{{< change 1900-12-30 "Initial creation" >}}
diff --git a/content/tips/faq-contributing.md b/content/tips/faq-contributing.md
index 9b4b77c..e19035f 100644
--- a/content/tips/faq-contributing.md
+++ b/content/tips/faq-contributing.md
@@ -14,8 +14,6 @@ tags:
---
## Changelog
-{{< back_to_top >}}
-
{{< changelog >}}
{{< change 2023-03-20 "Initial creation" >}}
{{< /changelog >}}
diff --git a/content/tips/organizers-bujo.md b/content/tips/organizers-bujo.md
index f250a91..ffebb0b 100644
--- a/content/tips/organizers-bujo.md
+++ b/content/tips/organizers-bujo.md
@@ -14,8 +14,6 @@ tags:
---
## Changelog
-{{< back_to_top >}}
-
{{< changelog >}}
{{< change 2023-03-20 "Initial creation" >}}
{{< /changelog >}}
diff --git a/content/tips/organizers-gtd.md b/content/tips/organizers-gtd.md
index 2e2b2b3..4bf087e 100644
--- a/content/tips/organizers-gtd.md
+++ b/content/tips/organizers-gtd.md
@@ -14,8 +14,6 @@ tags:
---
## Changelog
-{{< back_to_top >}}
-
{{< changelog >}}
{{< change 2023-03-20 "Initial creation" >}}
{{< /changelog >}}
diff --git a/content/tips/organizers.md b/content/tips/organizers.md
index 8529b3b..5be1b54 100644
--- a/content/tips/organizers.md
+++ b/content/tips/organizers.md
@@ -19,8 +19,6 @@ tags:
---
## Changelog
-{{< back_to_top >}}
-
{{< changelog >}}
{{< change 2023-03-20 "Initial creation" >}}
{{< /changelog >}}
diff --git a/themes/hugo-xmin/layouts/partials/categories_tags.html b/themes/hugo-xmin/layouts/partials/categories_tags.html
index d55e602..aa90d13 100644
--- a/themes/hugo-xmin/layouts/partials/categories_tags.html
+++ b/themes/hugo-xmin/layouts/partials/categories_tags.html
@@ -1,10 +1,19 @@
+
- {{ range $i := (slice "categories" "tags") }}
+ {{ range $i := (slice "categories") }}
{{ with ($.Param $i) }}
{{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }}
{{ end }}
-
{{ end }}
-
\ No newline at end of file
+
+
+
+
+ {{ range $i := (slice "tags") }}
+ {{ with ($.Param $i) }}
+ {{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }}
+ {{ end }}
+ {{ end }}
+
\ No newline at end of file
diff --git a/themes/hugo-xmin/layouts/partials/footer.html b/themes/hugo-xmin/layouts/partials/footer.html
index 72716e0..ff31be2 100644
--- a/themes/hugo-xmin/layouts/partials/footer.html
+++ b/themes/hugo-xmin/layouts/partials/footer.html
@@ -1,12 +1,35 @@