diff options
author | tdro <tdro@noreply.example.com> | 2022-12-21 00:20:05 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-21 00:20:05 -0500 |
commit | 7f5c73bc0384f1a0ffec2701d4183e2208007b40 (patch) | |
tree | 16f170cea156fa4e2d904c2f5fdb704843d618d1 /themes/default/layouts/partials/web-ring.html | |
parent | 2fb41a96097f335b3e5dbeb8dd0a2ad67bde2d3f (diff) | |
download | canory-0.11.9.tar.gz canory-0.11.9.tar.bz2 canory-0.11.9.zip |
themes/default/layouts/partials: Prevent feed fetches from multiplying0.11.9
By limiting to section. Add hugo option to version shortcode
Diffstat (limited to 'themes/default/layouts/partials/web-ring.html')
-rw-r--r-- | themes/default/layouts/partials/web-ring.html | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/themes/default/layouts/partials/web-ring.html b/themes/default/layouts/partials/web-ring.html deleted file mode 100644 index 1d163af..0000000 --- a/themes/default/layouts/partials/web-ring.html +++ /dev/null @@ -1,43 +0,0 @@ -{{- $feeds := partial "function-generate-feeds.html" . -}} - -<web-ring> - <h1>Web Ring</h1> - {{ if $feeds }} - <aside> - {{ range first 3 (uniq (sort $feeds "FeedDateTime" "desc")) }} - <web-ring-item> - <header> - <a - title="{{ .FeedLink }}" - href="{{ .FeedLink }}"> - {{ .FeedTitle }} - </a> - </header> - <time - title="{{ .FeedDateTitle }}" - datetime="{{ .FeedDateTime }}"> - {{ .FeedDate }} - </time> - <p> - {{ "--" | markdownify }} - {{ if gt (len .FeedDescriptionShort) (len .FeedContentShort) -}} - {{ or .FeedDescriptionShort .FeedTitle }} - {{- else -}} - {{ or .FeedContentShort .FeedTitle }} - {{- end }} - — - </p> - <a - title="{{ .FeedSourceDescription }}" - href="{{ or .FeedSourceHome .FeedSourceLink }}"> - {{ .FeedSourceTitle }} - </a> - </web-ring-item> - {{ end }} - </aside> - {{ else }} - <footer> - <code>No content found!</code> - </footer> - {{ end }} -</web-ring> |