aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-11-06 20:15:38 -0500
committertdro <tdro@noreply.example.com>2023-11-06 20:15:38 -0500
commite1f3254c256edf715f75b778513d14f18e865e67 (patch)
tree6187820d0c23f3a174923190ed0e00a1e0250ce2
parentb8b1cba41c944610f4d51d6368902425d5c32143 (diff)
downloadcanory-e1f3254c256edf715f75b778513d14f18e865e67.tar.gz
canory-e1f3254c256edf715f75b778513d14f18e865e67.tar.bz2
canory-e1f3254c256edf715f75b778513d14f18e865e67.zip
themes/default/layouts: Remove author dependency
-rw-r--r--content/canory/messages/animations.md1
-rw-r--r--content/canory/messages/cache.md1
-rw-r--r--content/canory/messages/code.md1
-rw-r--r--content/canory/messages/definitions.md1
-rw-r--r--content/canory/messages/diagrams.md1
-rw-r--r--content/canory/messages/drafts.md1
-rw-r--r--content/canory/messages/gates.md1
-rw-r--r--content/canory/messages/highlighting.md1
-rw-r--r--content/canory/messages/hugo.md1
-rw-r--r--content/canory/messages/imgur-video.md1
-rw-r--r--content/canory/messages/links.md1
-rw-r--r--content/canory/messages/lists.md1
-rw-r--r--content/canory/messages/markdown.md1
-rw-r--r--content/canory/messages/math.md1
-rw-r--r--content/canory/messages/odysee.md1
-rw-r--r--content/canory/messages/pdf.md1
-rw-r--r--content/canory/messages/pinned.md1
-rw-r--r--content/canory/messages/plumbing.md1
-rw-r--r--content/canory/messages/self.md1
-rw-r--r--content/canory/messages/selfdestruct.md1
-rw-r--r--content/canory/messages/selfdestructed.md1
-rw-r--r--content/canory/messages/styles.md1
-rw-r--r--content/canory/messages/tables.md1
-rw-r--r--content/canory/messages/tasks.md1
-rw-r--r--content/canory/messages/unlisted.md1
-rw-r--r--content/canory/messages/unsafe.md1
-rw-r--r--content/canory/messages/videos.md1
-rw-r--r--content/canory/messages/wikipedia.md1
-rw-r--r--content/canory/messages/xkcd.md1
-rw-r--r--content/canory/messages/youtube.md1
-rw-r--r--content/default/messages/authors.md3
-rw-r--r--content/default/messages/quickstart.md1
-rw-r--r--themes/default/layouts/_default/index.html5
-rw-r--r--themes/default/layouts/partials/base-footer.html2
-rw-r--r--themes/default/layouts/partials/base-title.html2
-rw-r--r--themes/default/layouts/partials/function-authors-data.html4
-rw-r--r--themes/default/layouts/partials/gallery-walk.html2
-rw-r--r--themes/default/layouts/partials/navigator-right.html3
38 files changed, 11 insertions, 41 deletions
diff --git a/content/canory/messages/animations.md b/content/canory/messages/animations.md
index 8792db5..4957497 100644
--- a/content/canory/messages/animations.md
+++ b/content/canory/messages/animations.md
@@ -2,7 +2,6 @@
date = "2022-03-16T05:41:52+00:00"
lastmod = "2022-03-16T05:41:52+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Text animations are out of style. Wait.. {{< animate waggle "nu-uh" >}}, just
diff --git a/content/canory/messages/cache.md b/content/canory/messages/cache.md
index d731590..9a57ced 100644
--- a/content/canory/messages/cache.md
+++ b/content/canory/messages/cache.md
@@ -2,7 +2,6 @@
date = "2022-02-27T20:18:43+00:00"
lastmod = "2022-02-27T20:18:43+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Resource abuse is not good --- cache responsibly. In the `hugo` configuration
diff --git a/content/canory/messages/code.md b/content/canory/messages/code.md
index ab9e656..503eb97 100644
--- a/content/canory/messages/code.md
+++ b/content/canory/messages/code.md
@@ -2,7 +2,6 @@
date = "2022-03-22T04:45:51+00:00"
lastmod = "2022-03-22T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Demonstrate your brilliance by embedding code with impeccable taste and
diff --git a/content/canory/messages/definitions.md b/content/canory/messages/definitions.md
index 93ffa73..4c5f30f 100644
--- a/content/canory/messages/definitions.md
+++ b/content/canory/messages/definitions.md
@@ -2,7 +2,6 @@
date = "2022-03-17T04:45:51+00:00"
lastmod = "2022-03-17T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
There's no infinite scrolling here --- it enfeebles the psyche. Here are a list
diff --git a/content/canory/messages/diagrams.md b/content/canory/messages/diagrams.md
index 2b64116..13ab121 100644
--- a/content/canory/messages/diagrams.md
+++ b/content/canory/messages/diagrams.md
@@ -2,7 +2,6 @@
date = "2022-03-25T04:45:51+00:00"
lastmod = "2022-03-25T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
{{< abbr >}} I :heart: `hugo` but hate emojis. Here's an
diff --git a/content/canory/messages/drafts.md b/content/canory/messages/drafts.md
index ad28b64..41fb2ae 100644
--- a/content/canory/messages/drafts.md
+++ b/content/canory/messages/drafts.md
@@ -3,7 +3,6 @@ date = "2022-03-04T02:44:51+00:00"
lastmod = "2022-03-04T02:44:51+00:00"
tags = [ "docs" ]
draft = true
-author = "canory"
+++
Draft those messages, you message drafter. Get a feel of how it delivers before
diff --git a/content/canory/messages/gates.md b/content/canory/messages/gates.md
index 9284ab5..eb2ddd3 100644
--- a/content/canory/messages/gates.md
+++ b/content/canory/messages/gates.md
@@ -2,7 +2,6 @@
date = "2022-03-01T01:24:31+00:00"
lastmod = "2022-03-01T01:24:31+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Satisfy the keepers of the gate by officially verifying ownership of your
diff --git a/content/canory/messages/highlighting.md b/content/canory/messages/highlighting.md
index 440ab23..076a189 100644
--- a/content/canory/messages/highlighting.md
+++ b/content/canory/messages/highlighting.md
@@ -2,7 +2,6 @@
date = "2022-03-24T04:45:51+00:00"
lastmod = "2022-03-24T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Sometimes I'll {{< mark "highlight stuff" />}} to draw attention to my fine
diff --git a/content/canory/messages/hugo.md b/content/canory/messages/hugo.md
index d0ab9be..2011db0 100644
--- a/content/canory/messages/hugo.md
+++ b/content/canory/messages/hugo.md
@@ -2,7 +2,6 @@
date = "2022-03-26T04:45:51+00:00"
lastmod = "2022-03-26T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
This micro blog is powered by Hugo, a static site generator that has lots of
diff --git a/content/canory/messages/imgur-video.md b/content/canory/messages/imgur-video.md
index f606c33..d04fe47 100644
--- a/content/canory/messages/imgur-video.md
+++ b/content/canory/messages/imgur-video.md
@@ -2,7 +2,6 @@
date = "2022-03-19T04:45:51+00:00"
lastmod = "2022-03-19T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Embedding a `gif` hosted from an external site is easy. Heard it might be
diff --git a/content/canory/messages/links.md b/content/canory/messages/links.md
index 43f73a5..bc79001 100644
--- a/content/canory/messages/links.md
+++ b/content/canory/messages/links.md
@@ -2,7 +2,6 @@
date = "2022-03-15T03:45:51+00:00"
lastmod = "2022-03-15T03:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
This individual is old enough to remember that the Internet is
diff --git a/content/canory/messages/lists.md b/content/canory/messages/lists.md
index 2449a83..04fbab7 100644
--- a/content/canory/messages/lists.md
+++ b/content/canory/messages/lists.md
@@ -2,7 +2,6 @@
date = "2022-03-12T02:44:51+00:00"
lastmod = "2022-03-12T02:44:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Speaking of lists. Everyone likes a good list right? Spur ridicule and
diff --git a/content/canory/messages/markdown.md b/content/canory/messages/markdown.md
index cb34605..675f3f1 100644
--- a/content/canory/messages/markdown.md
+++ b/content/canory/messages/markdown.md
@@ -2,7 +2,6 @@
date = "2022-03-14T04:45:51+00:00"
lastmod = "2022-03-14T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
[//]: # "That's a comment alright, hiding in plain sight."
diff --git a/content/canory/messages/math.md b/content/canory/messages/math.md
index 3138ae9..a3fca43 100644
--- a/content/canory/messages/math.md
+++ b/content/canory/messages/math.md
@@ -2,7 +2,6 @@
date = "2022-03-01T01:25:42+00:00"
lastmod = "2022-03-01T01:25:42+00:00"
tags = [ "docs" ]
-author = "canory"
+++
First nothing, then the infinity wars. You know; the miracle of the fallacy
diff --git a/content/canory/messages/odysee.md b/content/canory/messages/odysee.md
index d07f949..6f0c0a8 100644
--- a/content/canory/messages/odysee.md
+++ b/content/canory/messages/odysee.md
@@ -2,7 +2,6 @@
date = "2022-03-03T02:44:51+00:00"
lastmod = "2022-03-03T02:44:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
The cool kids are moving to a new video site called Odysee. How long do you
diff --git a/content/canory/messages/pdf.md b/content/canory/messages/pdf.md
index 75a62ed..e9522d8 100644
--- a/content/canory/messages/pdf.md
+++ b/content/canory/messages/pdf.md
@@ -2,7 +2,6 @@
date = "2022-03-07T02:20:51+00:00"
lastmod = "2022-03-07T02:20:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Heard you like {{< abbr `PDFs` "Portable Document Format" >}} but hate
diff --git a/content/canory/messages/pinned.md b/content/canory/messages/pinned.md
index d1b056d..1e3b219 100644
--- a/content/canory/messages/pinned.md
+++ b/content/canory/messages/pinned.md
@@ -4,7 +4,6 @@ lastmod = "2022-03-29T22:55:17+00:00"
tags = [ "docs" ]
weight = 1
liked = true
-author = "canory"
+++
This message is pinned for reasons unknown. For a quick start guide,
diff --git a/content/canory/messages/plumbing.md b/content/canory/messages/plumbing.md
index dfa71fe..6cda9c9 100644
--- a/content/canory/messages/plumbing.md
+++ b/content/canory/messages/plumbing.md
@@ -2,7 +2,6 @@
date = "2022-03-10T02:44:51+00:00"
lastmod = "2022-03-10T02:44:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Is your `JavaScript` functional? Double[^1] click a word and hold the
diff --git a/content/canory/messages/self.md b/content/canory/messages/self.md
index c974fa6..f5834a4 100644
--- a/content/canory/messages/self.md
+++ b/content/canory/messages/self.md
@@ -2,7 +2,6 @@
date = "2022-03-02T02:44:51+00:00"
lastmod = "2022-03-02T02:44:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Check out this party trick; this thing can quote other messages.
diff --git a/content/canory/messages/selfdestruct.md b/content/canory/messages/selfdestruct.md
index c1bb3af..bfac31d 100644
--- a/content/canory/messages/selfdestruct.md
+++ b/content/canory/messages/selfdestruct.md
@@ -3,7 +3,6 @@ date = "2022-03-08T02:20:51+00:00"
lastmod = "2022-03-08T02:20:51+00:00"
expirydate = "2122-04-29T22:55:17+00:00"
tags = [ "docs" ]
-author = "canory"
slug = "cf1a1feb1"
+++
diff --git a/content/canory/messages/selfdestructed.md b/content/canory/messages/selfdestructed.md
index 246cdbc..2cf1852 100644
--- a/content/canory/messages/selfdestructed.md
+++ b/content/canory/messages/selfdestructed.md
@@ -3,7 +3,6 @@ date = "2022-03-08T02:18:49+00:00"
lastmod = "2022-03-08T02:18:49+00:00"
expirydate = "2022-03-08T02:19:51+00:00"
tags = [ "docs" ]
-author = "canory"
slug = "cf1a1feb2"
+++
diff --git a/content/canory/messages/styles.md b/content/canory/messages/styles.md
index 2791d5e..67c63be 100644
--- a/content/canory/messages/styles.md
+++ b/content/canory/messages/styles.md
@@ -2,7 +2,6 @@
date = "2022-03-23T04:45:51+00:00"
lastmod = "2022-03-23T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
**Subtlety** *wins* arguments, and other times an **_impassioned
diff --git a/content/canory/messages/tables.md b/content/canory/messages/tables.md
index ade801c..97c4aea 100644
--- a/content/canory/messages/tables.md
+++ b/content/canory/messages/tables.md
@@ -2,7 +2,6 @@
date = "2022-03-04T02:44:51+00:00"
lastmod = "2022-03-04T02:44:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Tables are the most universally understood data presentation format but...
diff --git a/content/canory/messages/tasks.md b/content/canory/messages/tasks.md
index 86c2312..379c359 100644
--- a/content/canory/messages/tasks.md
+++ b/content/canory/messages/tasks.md
@@ -2,7 +2,6 @@
date = "2022-03-13T03:44:51+00:00"
lastmod = "2022-03-13T03:44:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
We get things done around here! The first step is to write down our goals for
diff --git a/content/canory/messages/unlisted.md b/content/canory/messages/unlisted.md
index 4ba23b5..76294bf 100644
--- a/content/canory/messages/unlisted.md
+++ b/content/canory/messages/unlisted.md
@@ -3,7 +3,6 @@ date = "2022-03-08T02:16:51+00:00"
lastmod = "2022-03-08T02:16:51+00:00"
tags = [ "docs" ]
unlisted = true
-author = "canory"
+++
So you're a bit bold and have the cooking skills needed to stay in the kitchen.
diff --git a/content/canory/messages/unsafe.md b/content/canory/messages/unsafe.md
index 9c75457..f43799e 100644
--- a/content/canory/messages/unsafe.md
+++ b/content/canory/messages/unsafe.md
@@ -2,7 +2,6 @@
date = "2022-03-09T02:43:51+00:00"
lastmod = "2022-03-09T02:43:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
{{< disclose />}}
diff --git a/content/canory/messages/videos.md b/content/canory/messages/videos.md
index 9678aec..3655f46 100644
--- a/content/canory/messages/videos.md
+++ b/content/canory/messages/videos.md
@@ -2,7 +2,6 @@
date = "2022-03-20T04:45:51+00:00"
lastmod = "2022-03-20T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Here's a video that warms my dear heart. Showing videos to others makes you
diff --git a/content/canory/messages/wikipedia.md b/content/canory/messages/wikipedia.md
index 7552249..12950b2 100644
--- a/content/canory/messages/wikipedia.md
+++ b/content/canory/messages/wikipedia.md
@@ -2,7 +2,6 @@
date = "2022-03-06T02:20:51+00:00"
lastmod = "2022-03-06T02:20:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Reason, meaning, and knowledge are the ground truths of society but only when
diff --git a/content/canory/messages/xkcd.md b/content/canory/messages/xkcd.md
index ea0d216..0896da1 100644
--- a/content/canory/messages/xkcd.md
+++ b/content/canory/messages/xkcd.md
@@ -2,7 +2,6 @@
date = "2022-03-18T04:45:51+00:00"
lastmod = "2022-03-18T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Hosting and linking content is copyright radioactive. Be a good netizen and
diff --git a/content/canory/messages/youtube.md b/content/canory/messages/youtube.md
index 633e64d..33f7c53 100644
--- a/content/canory/messages/youtube.md
+++ b/content/canory/messages/youtube.md
@@ -2,7 +2,6 @@
date = "2022-03-16T04:45:51+00:00"
lastmod = "2022-03-16T04:45:51+00:00"
tags = [ "docs" ]
-author = "canory"
+++
Netizens think that there are only 5 websites. Here's a video from one of them.
diff --git a/content/default/messages/authors.md b/content/default/messages/authors.md
index 1428ca1..973de7a 100644
--- a/content/default/messages/authors.md
+++ b/content/default/messages/authors.md
@@ -7,6 +7,3 @@ tags = [ "docs" ]
Beep beep beep. Another user? Multiple users are available by setting a specific
author. [@canory](/canory) thinks this is cool but doesn't know any better --
it's hacks all the way down.
-
-Any soul that sends a message without a name becomes a _default_ because
-{{< smallcaps "I AM" >}} the default.
diff --git a/content/default/messages/quickstart.md b/content/default/messages/quickstart.md
index dfb9ffe..14903be 100644
--- a/content/default/messages/quickstart.md
+++ b/content/default/messages/quickstart.md
@@ -2,7 +2,6 @@
date = "2022-03-05T03:45:51+00:00"
lastmod = "2022-03-05T03:45:51+00:00"
tags = [ "docs" ]
-author = "default"
+++
Somehow you've ended up here, funny how that works. I'm responsible for
diff --git a/themes/default/layouts/_default/index.html b/themes/default/layouts/_default/index.html
index f1ab369..2f97bbd 100644
--- a/themes/default/layouts/_default/index.html
+++ b/themes/default/layouts/_default/index.html
@@ -30,13 +30,14 @@
{{- end -}}
{{- define "right" -}}
+ {{- $author := "Section" -}}
{{- partial "author-list.html" . -}}
- {{- range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.gallery) -}}
+ {{- range first 1 (where .Site.Pages $author .Site.Author.default.gallery) -}}
{{- partial "gallery.html" . -}}
{{- end -}}
- {{- range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.webring) -}}
+ {{- range first 1 (where .Site.Pages $author .Site.Author.default.webring) -}}
{{- partial "following-list.html" . -}}
{{- partial "webring.html" . -}}
{{- end -}}
diff --git a/themes/default/layouts/partials/base-footer.html b/themes/default/layouts/partials/base-footer.html
index d83f07c..53b3b2f 100644
--- a/themes/default/layouts/partials/base-footer.html
+++ b/themes/default/layouts/partials/base-footer.html
@@ -1,5 +1,5 @@
{{- $kind := in (slice "home" "taxonomy" "term") .Page.Kind -}}
-{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.footer) | default "default") -}}
+{{- $author := index .Site.Data ((or .Section .Site.Author.default.footer) | default "default") -}}
<footer>
{{- with .Site.Author.footer -}}
diff --git a/themes/default/layouts/partials/base-title.html b/themes/default/layouts/partials/base-title.html
index b34355d..79e34ca 100644
--- a/themes/default/layouts/partials/base-title.html
+++ b/themes/default/layouts/partials/base-title.html
@@ -1,4 +1,4 @@
-{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.title) | default "default") -}}
+{{- $author := index .Site.Data ((or .Section .Site.Author.default.title) | default "default") -}}
{{- if not (eq .Title $.Site.Title) -}}
{{- with $title := or .Title .Summary -}}
diff --git a/themes/default/layouts/partials/function-authors-data.html b/themes/default/layouts/partials/function-authors-data.html
index f2ef800..88af43d 100644
--- a/themes/default/layouts/partials/function-authors-data.html
+++ b/themes/default/layouts/partials/function-authors-data.html
@@ -4,6 +4,8 @@
{{- $authorDefaultUser := or .Data.AuthorDefaultUser $pageContext.Site.Author.default.user -}}
-{{- $output := index $pageContext.Site.Data ((or $pageContext.Params.author $authorDefaultUser) | default "default") -}}
+{{- $author := $pageContext.Section -}}
+
+{{- $output := index $pageContext.Site.Data ((or $author $authorDefaultUser) | default "default") -}}
{{- return $output -}}
diff --git a/themes/default/layouts/partials/gallery-walk.html b/themes/default/layouts/partials/gallery-walk.html
index b621633..4b0df36 100644
--- a/themes/default/layouts/partials/gallery-walk.html
+++ b/themes/default/layouts/partials/gallery-walk.html
@@ -13,7 +13,7 @@
{{- $filteredPages := partial "function-filters-content.html" .Site.RegularPages -}}
-{{- range (where $filteredPages "Params.Author" $author.user) -}}
+{{- range (where $filteredPages "Section" $author.user) -}}
{{- if in .Content "<picture>" -}}
{{- $data = $data | append (dict
"alt" (delimit (findRE `(?sU)alt=".*"` .Content 1) "")
diff --git a/themes/default/layouts/partials/navigator-right.html b/themes/default/layouts/partials/navigator-right.html
index 573cb8f..4ad5d42 100644
--- a/themes/default/layouts/partials/navigator-right.html
+++ b/themes/default/layouts/partials/navigator-right.html
@@ -1,4 +1,5 @@
{{- partial "author-list.html" . -}}
+{{- $author := "Section" -}}
{{- if or
(eq .Page.Kind "page")
@@ -19,7 +20,7 @@
{{- else -}}
- {{- range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.webring) -}}
+ {{- range first 1 (where .Site.Pages $author .Site.Author.default.webring) -}}
{{- partial "webring.html" . -}}
{{- end -}}