added description to rss

This commit is contained in:
Alex Gentilucci 2020-09-03 09:27:53 -06:00
parent d8f3c542d4
commit f817047190
Signed by: nytpu
GPG Key ID: ECCDC07B337B8F5B
1 changed files with 2 additions and 2 deletions

View File

@ -54,14 +54,14 @@ make_rss() {
echo "<description>$global_description</description><language>en</language>"
echo "<lastBuildDate>$pubdate</lastBuildDate>"
echo "<pubDate>$pubdate</pubDate>"
echo "<atom:link href=\"$feed_base_url/$gemlog_feed\" rel=\"self\" type=\"application/rss+xml\" />"
echo "<atom:link href=\"$feed_base_url$gemlog_feed\" rel=\"self\" type=\"application/rss+xml\" />"
n=0
while IFS='' read -r i; do
((n >= number_of_feed_articles)) && break
echo "<item><title>"
get_post_title "$i"
echo "</title><description></description><link>$global_url${i#'./'}</link>"
echo "</title><description>You need a gemini protocol client to view this post.&lt;br&gt;If you have one installed, click here to open the post: &lt;a href=\"$global_url${i#'./'}\"&gt;$global_url${i#'./'}&lt;/a&gt;</description><link>$global_url${i#'./'}</link>"
echo "<guid>$global_url${i#'./'}</guid>"
echo "<dc:creator>$global_author</dc:creator>"
echo "<pubDate>$(LC_ALL=C date -r "$i" +"$date_format_full")</pubDate></item>"