Compare commits
2 Commits
d8f3c542d4
...
48ef90ea63
Author | SHA1 | Date |
---|---|---|
Alex Gentilucci | 48ef90ea63 | |
Alex Gentilucci | 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>"
|
||||
|
@ -80,7 +80,7 @@ make_rss() {
|
|||
build_entries() {
|
||||
echo "Building entries"
|
||||
{
|
||||
cat << 'EOF'
|
||||
sed 's/$/\r/g' << 'EOF'
|
||||
```yatg by nytpu
|
||||
,───────────────.
|
||||
(_\ _________ \ __
|
||||
|
|
Loading…
Reference in New Issue