From 41b31d99a308d4902e4a7cb13173994f303319a2 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 8 Aug 2022 23:30:17 -0400 Subject: data: Pre add picture entry and generalize feeds --- data/canory.yaml | 6 +++++- data/default.yaml | 6 +++++- themes/default/layouts/partials/generate-feeds.html | 4 ++-- themes/default/layouts/partials/profile.html | 2 +- 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 @@

{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/user.svg")) }} - {{ with $author.webring.rss }}{{ len . }}{{ else }} 0 {{ end }} Following + {{ with $author.feeds.rss }}{{ len . }}{{ else }} 0 {{ end }} Following

-- cgit v1.2.3