mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
fix RSS validation errors
This commit is contained in:
parent
3fd9a33399
commit
514b896770
2 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue