I would like to populate a summary property in the items of Atom feeds I generate via inline, with the content I specify via meta description. — Jon, 2026-01-16

Pretty simple patch, trying this out myself for a little while:

diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index f40956821..5729945b9 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -689,6 +689,10 @@ sub genfeed ($$$$$@) {
                );

                if (exists $pagestate{$p}) {
+                       if (exists $pagestate{$p}{meta}{description}) {
+                               eval q{use HTML::Entities};
+                               $itemtemplate->param(summary => HTML::Entities::encode_entities($pagestate{$p}{meta}{description}, '<>&'));
+                       }
                        if (exists $pagestate{$p}{meta}{guid}) {
                                eval q{use HTML::Entities};
                                $itemtemplate->param(guid => HTML::Entities::encode_numeric($pagestate{$p}{meta}{guid}));
diff --git a/templates/atomitem.tmpl b/templates/atomitem.tmpl
index 9b056e0f4..176f91dfe 100644
--- a/templates/atomitem.tmpl
+++ b/templates/atomitem.tmpl
@@ -32,6 +32,9 @@
 </TMPL_IF>
        <updated><TMPL_VAR MDATE_3339></updated>
        <published><TMPL_VAR CDATE_3339></published>
+<TMPL_IF SUMMARY>
+       <summary><TMPL_VAR SUMMARY></summary>
+</TMPL_IF>
 <TMPL_IF ENCLOSURE>
        <link rel="enclosure" type="<TMPL_VAR TYPE>" href="<TMPL_VAR ENCLOSURE>" length="<TMPL_VAR LENGTH>" />
 </TMPL_IF>

Jon, 2026-01-19