forked from nytpu/gemlog.sh
added description to rss
This commit is contained in:
parent
d8f3c542d4
commit
f817047190
|
@ -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.<br>If you have one installed, click here to open the post: <a href=\"$global_url${i#'./'}\">$global_url${i#'./'}</a></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>"
|
||||
|
|
Loading…
Reference in New Issue