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
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
- echo "Installing the dependencies..."
|
- echo "Installing the dependencies..."
|
||||||
- apk add discount make bash perl gcc
|
- apk add discount make bash perl gcc uuidgen
|
||||||
script:
|
script:
|
||||||
- make THEME=discount-theme
|
- make THEME=discount-theme
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
|
@ -87,18 +87,18 @@ for f in $FILES; do
|
||||||
echo "<item>"
|
echo "<item>"
|
||||||
echo "<title>$TITLE</title>"
|
echo "<title>$TITLE</title>"
|
||||||
echo "<link>https://devurandom.xyz/blog/$OUTPAGE</link>"
|
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
|
if [ $MTIME -gt 0 ]; then
|
||||||
RDATE=`date -R -u -d @$MTIME`
|
RDATE=`date -R -u -d @$MTIME`
|
||||||
if [[ "$RDATE" == *UTC ]]; then
|
if [[ "$RDATE" == *UTC ]]; then
|
||||||
RDATE="${RDATE%UTC}+0000"
|
RDATE="${RDATE%UTC}+0000"
|
||||||
fi
|
fi
|
||||||
echo "<pubdate>$RDATE</pubdate>"
|
echo "<pubDate>$RDATE</pubDate>"
|
||||||
fi
|
fi
|
||||||
DESCRIPTION="`printcut $f`"
|
DESCRIPTION="`printcut $f`"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
DESC_HTML=`echo "$DESCRIPTION" | markdown`
|
echo "<description>$DESCRIPTION</description>"
|
||||||
echo "<description>$DESC_HTML</description>"
|
|
||||||
fi
|
fi
|
||||||
echo "</item>"
|
echo "</item>"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue