aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-08 23:30:17 -0400
committertdro <tdro@noreply.example.com>2022-08-08 23:30:17 -0400
commit41b31d99a308d4902e4a7cb13173994f303319a2 (patch)
tree064686b5f93536ad2752651132143d44bdf0fc54
parenta6aef53e6f187387da24f00165493b5893608919 (diff)
downloadcanory-41b31d99a308d4902e4a7cb13173994f303319a2.tar.gz
canory-41b31d99a308d4902e4a7cb13173994f303319a2.tar.bz2
canory-41b31d99a308d4902e4a7cb13173994f303319a2.zip
data: Pre add picture entry and generalize feeds
-rw-r--r--data/canory.yaml6
-rw-r--r--data/default.yaml6
-rw-r--r--themes/default/layouts/partials/generate-feeds.html4
-rw-r--r--themes/default/layouts/partials/profile.html2
4 files changed, 13 insertions, 5 deletions
diff --git a/data/canory.yaml b/data/canory.yaml
index fba7750..4cdd3bd 100644
--- a/data/canory.yaml
+++ b/data/canory.yaml
@@ -8,11 +8,15 @@ domain:
host: canory.example
url: https://example.com
epoch: Arrived on the second fortnight of April, `2022`
+picture:
+ header:
+ profile:
description: >
Descended from an inner star system of the Sunflower galaxy. Not an owl.
Theme Canory --- a micro blog theme for [Hugo](https://gohugo.io/), one of many
[static site generators](https://jamstack.org/generators/).
-webring:
+feeds:
rss:
- https://www.rfc-editor.org/rfcrss.xml
json:
+ nitter:
diff --git a/data/default.yaml b/data/default.yaml
index b73b2b9..2b2e964 100644
--- a/data/default.yaml
+++ b/data/default.yaml
@@ -7,12 +7,16 @@ place: In your head
domain:
host: default.example
url: https://example.com
+picture:
+ header:
+ profile:
epoch: Appeared sometime around April, `2022`
description: >
Dignissimos quis animi velit. Not a bot. If you believe everything you read on
the Internet, you'll think that I'm human.
-webring:
+feeds:
rss:
- https://hacks.mozilla.org/feed/
- http://www.bing.com/HPImageArchive.aspx?format=rss&idx=0&n=1&mkt=en-US
json:
+ nitter:
diff --git a/themes/default/layouts/partials/generate-feeds.html b/themes/default/layouts/partials/generate-feeds.html
index 3c87972..19afd1b 100644
--- a/themes/default/layouts/partials/generate-feeds.html
+++ b/themes/default/layouts/partials/generate-feeds.html
@@ -2,9 +2,9 @@
{{- $feeds := slice -}}
-{{- if $author.webring.rss -}}
+{{- if $author.feeds.rss -}}
{{- range $key, $value := (seq 3) -}}
- {{- range $author.webring.rss -}}
+ {{- range $author.feeds.rss -}}
{{- with resources.GetRemote . -}}
{{- with .Err -}}
diff --git a/themes/default/layouts/partials/profile.html b/themes/default/layouts/partials/profile.html
index 0484987..fa6f826 100644
--- a/themes/default/layouts/partials/profile.html
+++ b/themes/default/layouts/partials/profile.html
@@ -43,7 +43,7 @@
</p>
<p>
{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/user.svg")) }}
- <span><b>{{ with $author.webring.rss }}{{ len . }}{{ else }} 0 {{ end }}</b> Following</span>
+ <span><b>{{ with $author.feeds.rss }}{{ len . }}{{ else }} 0 {{ end }}</b> Following</span>
</p>
</footer>