diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2023-08-05 20:19:57 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2023-08-05 20:22:36 -0400 |
| commit | f2839a2cbb9b5ea47a75b4e0f2fcb094273644e5 (patch) | |
| tree | 021e7ad7e3b392f6f3efb1ba6d954cd95b413d99 | |
| parent | 8f7311f7843b5ece8105409604e3817b4e7f1c7d (diff) | |
Drastically shrink Atom feed by not including full text in-line
| -rw-r--r-- | haunt/haunt.scm | 2 | ||||
| -rw-r--r-- | haunt/jakob/builder/atom.scm | 5 | ||||
| -rw-r--r-- | org/pages/changelog.org | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/haunt/haunt.scm b/haunt/haunt.scm index 7313632..79d05e4 100644 --- a/haunt/haunt.scm +++ b/haunt/haunt.scm @@ -44,7 +44,7 @@ (email . "zerodaysfordays@sdf.lonestar.org")) #:readers (list html-reader-prime) #:builders - (list (atom-feed) + (list (atom-feed #:max-entries 1024) (blog) (blogroll) (htaccess #:error-documents '((404 . "pages/404.html"))) diff --git a/haunt/jakob/builder/atom.scm b/haunt/jakob/builder/atom.scm index e210041..8852372 100644 --- a/haunt/jakob/builder/atom.scm +++ b/haunt/jakob/builder/atom.scm @@ -1,4 +1,4 @@ -;;; Copyright © 2019 - 2020 Jakob L. Kreuze <zerodaysfordays@sdf.org> +;;; Copyright © 2019 - 2023 Jakob L. Kreuze <zerodaysfordays@sdf.org> ;;; ;;; This program is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU General Public License as @@ -22,6 +22,7 @@ #:use-module (haunt utils) #:use-module (ice-9 match) #:use-module (jakob builder blog) + #:use-module (jakob utils) #:use-module (jakob utils sxml) #:use-module (srfi srfi-19) #:use-module (srfi srfi-26) @@ -43,7 +44,7 @@ (link (@ (href ,uri) (rel "alternate"))) (summary (@ (type "html")) ,(sxml->html-string - (append (post-sxml post) + (append (first-paragraph post) (if (post-ref post 'crosspost) `((p "...") (p "This is a crosspost. Click " diff --git a/org/pages/changelog.org b/org/pages/changelog.org index 5e8fc8c..91bd00e 100644 --- a/org/pages/changelog.org +++ b/org/pages/changelog.org @@ -6,6 +6,8 @@ A record of any notable user-facing changes made to this website. For more detai - Began maintaining a changelog. - Pulled in [[https://pagefind.app/][pagefind]] for self-hosted search. +- Updated [[https://en.wikipedia.org/wiki/Atom_(web_standard)][Atom]] feed to include only the first paragraph of the post in the =<summary>= section. + - This /drastically/ reduces the size of =feed.xml=. Hopefully it makes pulling a little less painful for those subscribed. - Re-implemented RSVP and gallery using server-side rendering. - These are features the typical reader would not have used. They're described in detail [[https://jakob.space/blog/pushing-haunt-to-its-limits.html][here]], but the short is that they're things I use for my meatspace friends. - Updated the [[https://jakob.space/pages/about-complete.html][long-form biographical page]]. |