fix RSS validation errors

This commit is contained in:
/dev/urandom 2022-01-18 20:00:06 +03:00
parent 3fd9a33399
commit 514b896770
2 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ build-job: # This job runs in the build stage, which runs first.
stage: build
before_script:
- echo "Installing the dependencies..."
- apk add discount make bash perl gcc
- apk add discount make bash perl gcc uuidgen
script:
- make THEME=discount-theme
artifacts:

View file

@ -87,18 +87,18 @@ for f in $FILES; do
echo "<item>"
echo "<title>$TITLE</title>"
echo "<link>https://devurandom.xyz/blog/$OUTPAGE</link>"
GUID=$(uuidgen -n @url -N "https://devurandom.xyz/blog/$OUTPAGE")
echo "<guid>$GUID</guid>"
if [ $MTIME -gt 0 ]; then
RDATE=`date -R -u -d @$MTIME`
if [[ "$RDATE" == *UTC ]]; then
RDATE="${RDATE%UTC}+0000"
fi
echo "<pubdate>$RDATE</pubdate>"
echo "<pubDate>$RDATE</pubDate>"
fi
DESCRIPTION="`printcut $f`"
if [ $? -eq 0 ]; then
DESC_HTML=`echo "$DESCRIPTION" | markdown`
echo "<description>$DESC_HTML</description>"
echo "<description>$DESCRIPTION</description>"
fi
echo "</item>"
else