mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
made the blog rss actually work
This commit is contained in:
parent
0d821ad644
commit
a2bc5a758a
1 changed files with 4 additions and 3 deletions
|
@ -49,7 +49,7 @@ done
|
|||
FILES=`cat blogdates.txt | sort -nr | cut -f 2-`
|
||||
|
||||
cat << RSSHEADER
|
||||
<?xml version="1.0" encoding=\"UTF-8\" ?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>rnd's blog</title>
|
||||
|
@ -70,7 +70,7 @@ for f in $FILES; do
|
|||
|
||||
echo "<item>"
|
||||
echo "<title>$TITLE</title>"
|
||||
echo "<link>$OUTPAGE</link>"
|
||||
echo "<link>https://rnd.neocities.org/blog/$OUTPAGE</link>"
|
||||
|
||||
if [ $MTIME -gt 0 ]; then
|
||||
RDATE=`date -R -u -d @$MTIME`
|
||||
|
@ -79,15 +79,16 @@ for f in $FILES; do
|
|||
fi
|
||||
echo "<pubdate>$RDATE</pubdate>"
|
||||
fi
|
||||
echo "</item>"
|
||||
DESCRIPTION="`printcut $f`"
|
||||
if [ $? -eq 0 ]; then
|
||||
DESC_HTML=`echo "$DESCRIPTION" | markdown`
|
||||
echo "<description>$DESC_HTML</description>"
|
||||
fi
|
||||
echo "</item>"
|
||||
|
||||
done
|
||||
|
||||
cat << RSSFOOTER
|
||||
</channel>
|
||||
</rss>
|
||||
RSSFOOTER
|
||||
|
|
Loading…
Add table
Reference in a new issue