valid atom feed with summary

This commit is contained in:
prx 2021-09-30 11:00:50 +02:00
parent 2744f77827
commit 84ecc5354b
1 changed files with 5 additions and 6 deletions

View File

@ -34,12 +34,11 @@ for page in ../public/issue-*.html ; do
<id>tag:${domain},${tagfirst}:${tag}</id>
<updated>${PUBLISHED_DATE}</updated>
<link rel="alternate" type="text/html" href="https://${domain}/${issue}.html" />
<content type="html">
<![CDATA[
$(sed -n '/<body>/,/<\/body>/p' ${page} |\
sed -e '1s/.*<body>//' -e '$s/<\/body>.*//')
]]>
</content>
<summary type="html">
<![CDATA[
$(awk 'f;/<h2>/{f=1}' $issue/10_headlines.html)
]]>
</summary>
</entry>
EOF
done