diff options
| author | tdro <tdro@noreply.example.com> | 2024-09-20 00:00:00 +0000 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2024-09-20 00:00:00 +0000 |
| commit | 259e01f9ed5ff0281f03a70e15507174e0a1a258 (patch) | |
| tree | 0bfa758a79dd39b8501e00a64d01e104bcfe550c | |
| parent | 57423d463d9217e55eef628edd9222ade767743d (diff) | |
| download | canory-259e01f9ed5ff0281f03a70e15507174e0a1a258.tar.gz canory-259e01f9ed5ff0281f03a70e15507174e0a1a258.tar.bz2 canory-259e01f9ed5ff0281f03a70e15507174e0a1a258.zip | |
config/_default: Generalize following-list -> web-feeds
| -rw-r--r-- | assets/css/default.css | 38 | ||||
| -rw-r--r-- | config/_default/config.json | 6 | ||||
| -rw-r--r-- | config/_default/config.toml | 6 | ||||
| -rw-r--r-- | config/_default/config.yaml | 6 | ||||
| -rw-r--r-- | themes/default/layouts/_default/section.webfeeds.html (renamed from themes/default/layouts/_default/section.following.html) | 0 | ||||
| -rw-r--r-- | themes/default/layouts/partials/navigator-right.html | 2 | ||||
| -rw-r--r-- | themes/default/layouts/partials/webfeeds.html (renamed from themes/default/layouts/partials/following-list.html) | 6 |
7 files changed, 32 insertions, 32 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index c7fe04f..b699f38 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -258,7 +258,7 @@ pre, kbd, code, svg text, -following-list details summary:after, +web-feeds details summary:after, micro-card article details[data-disclosure] summary:after { font-size: 0.95rem; font-family: "Fira Code", "Lucida Console", "Andale Mono", "Roboto Mono", @@ -1449,8 +1449,8 @@ micro-card details[data-disclosure] summary:focus a { color: inherit; } -following-list details summary:focus:after, -following-list details[open] summary:focus:after, +web-feeds details summary:focus:after, +web-feeds details[open] summary:focus:after, micro-card details[data-disclosure] summary:focus:after, micro-card details[data-disclosure][open] summary:focus:after { color: #111; @@ -1458,8 +1458,8 @@ micro-card details[data-disclosure][open] summary:focus:after { border-color: #111; } -following-list details summary:after, -following-list details[open] summary:after, +web-feeds details summary:after, +web-feeds details[open] summary:after, micro-card details[data-disclosure] summary:after, micro-card details[data-disclosure][open] summary:after { border-radius: 0.5rem; @@ -1840,7 +1840,7 @@ web-links aside { web-links aside, author-list aside, -following-list aside { +web-feeds aside { background-color: #f9f9f9; background-color: var(--widget-background); border-radius: 0.5rem; @@ -1848,14 +1848,14 @@ following-list aside { web-links aside footer, author-list aside footer, -following-list aside footer { +web-feeds aside footer { background-color: #fefefe; background-color: var(--background); } web-links, author-list, -following-list, +web-feeds, gallery-images { padding-bottom: 1rem; display: block; @@ -1864,48 +1864,48 @@ gallery-images { web-links > h1, author-list > h1, gallery-images > h1, -following-list details { +web-feeds details { font-size: 95%; margin: 0.5rem 0 1rem 0; text-align: center; text-transform: uppercase; } -following-list details h1 { +web-feeds details h1 { display: inline-block; } -following-list aside micro-author { +web-feeds aside micro-author { display: none; } -following-list details[open] + aside micro-author, -following-list aside micro-author:nth-child(-n + 3) { +web-feeds details[open] + aside micro-author, +web-feeds aside micro-author:nth-child(-n + 3) { display: inherit; } -following-list:hover details[open] + aside { +web-feeds:hover details[open] + aside { outline: 2px solid #ccc; outline: 2px solid var(--border-darker); } -following-list details[data-expand="more"] summary:after { +web-feeds details[data-expand="more"] summary:after { content: "+"; } -following-list details[open][data-expand="more"] summary:after { +web-feeds details[open][data-expand="more"] summary:after { content: "-"; } -following-list details[data-expand="more"] summary:after, -following-list details[open][data-expand="more"] summary:after { +web-feeds details[data-expand="more"] summary:after, +web-feeds details[open][data-expand="more"] summary:after { padding: 0 0.5rem; font-size: 100%; margin-left: 0.25rem; } author-list:hover h1, -following-list:hover details h1 { +web-feeds:hover details h1 { text-decoration: underline; } diff --git a/config/_default/config.json b/config/_default/config.json index 26ff35b..fe7b5e6 100644 --- a/config/_default/config.json +++ b/config/_default/config.json @@ -232,8 +232,8 @@ "baseName": "gallery", "mediaType": "text/html" }, - "following": { - "baseName": "following", + "webfeeds": { + "baseName": "webfeeds", "mediaType": "text/html" }, "weblinks": { @@ -258,7 +258,7 @@ "html", "rss", "gallery", - "following", + "webfeeds", "weblinks" ], "taxonomy": [ diff --git a/config/_default/config.toml b/config/_default/config.toml index 94a3e5b..2839446 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -161,8 +161,8 @@ enableRobotsTXT = true [outputFormats.gallery] baseName = "gallery" mediaType = "text/html" - [outputFormats.following] - baseName = "following" + [outputFormats.webfeeds] + baseName = "webfeeds" mediaType = "text/html" [outputFormats.weblinks] baseName = "weblinks" @@ -170,7 +170,7 @@ enableRobotsTXT = true [outputs] home = ["html", "rss", "xslt.rss", "xslt.sitemap", "json", "authors", "authors.section", "sources", "archives", "settings"] - section = ["html", "rss", "gallery", "following", "weblinks"] + section = ["html", "rss", "gallery", "webfeeds", "weblinks"] taxonomy = ["html", "rss"] term = ["html", "rss"] page = ["html", "plain", "embed"] diff --git a/config/_default/config.yaml b/config/_default/config.yaml index d4ac3b4..233744c 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -155,8 +155,8 @@ outputFormats: gallery: baseName: gallery mediaType: text/html - following: - baseName: following + webfeeds: + baseName: webfeeds mediaType: text/html weblinks: baseName: weblinks @@ -178,7 +178,7 @@ outputs: - html - rss - gallery - - following + - webfeeds - weblinks taxonomy: - html diff --git a/themes/default/layouts/_default/section.following.html b/themes/default/layouts/_default/section.webfeeds.html index e8bf821..e8bf821 100644 --- a/themes/default/layouts/_default/section.following.html +++ b/themes/default/layouts/_default/section.webfeeds.html diff --git a/themes/default/layouts/partials/navigator-right.html b/themes/default/layouts/partials/navigator-right.html index fb4c59c..6933a81 100644 --- a/themes/default/layouts/partials/navigator-right.html +++ b/themes/default/layouts/partials/navigator-right.html @@ -2,6 +2,6 @@ {{- if (in (slice "page" "section") .Page.Kind) -}} {{- partial "gallery.html" . -}} - {{- partial "following-list.html" . -}} + {{- partial "webfeeds.html" . -}} {{- partial "weblinks.html" . -}} {{- end -}} diff --git a/themes/default/layouts/partials/following-list.html b/themes/default/layouts/partials/webfeeds.html index 510d3d2..775e55a 100644 --- a/themes/default/layouts/partials/following-list.html +++ b/themes/default/layouts/partials/webfeeds.html @@ -1,6 +1,6 @@ {{- $count := 0 -}} {{- $author := partial "function-authors-data.html" . -}} -{{- $feeds := print "public/" .Section "/following.html" -}} +{{- $feeds := print "public/" .Section "/webfeeds.html" -}} {{- with $items := $author.feeds.rss -}} {{- $count = len $items -}} @@ -8,7 +8,7 @@ {{- $expand := cond (gt $count 3) "more" "less" -}} -<following-list> +<web-feeds> <details id="web-feeds" data-expand="{{- $expand -}}" @@ -28,4 +28,4 @@ </footer> {{- end -}} </aside> -</following-list> +</web-feeds> |
