From f2839a2cbb9b5ea47a75b4e0f2fcb094273644e5 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sat, 5 Aug 2023 20:19:57 -0400 Subject: Drastically shrink Atom feed by not including full text in-line --- haunt/jakob/builder/atom.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'haunt/jakob') 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 +;;; Copyright © 2019 - 2023 Jakob L. Kreuze ;;; ;;; 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 " -- cgit v1.3