summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index baeca3a..e7cb139 100755
--- a/update.sh
+++ b/update.sh
@@ -27,14 +27,17 @@ do
then
echo "[$filename_wo_ext]($filename_wo_ext.html) " >> INDEX.md
+ origdate=$(echo "$filename_wo_ext" | cut -f 1 -d '_')
+ pubdaterfc822=$(python3 rfc822date.py ${origdate})
+
RSS_ITEM_TITLE="$filename_wo_ext"
RSS_ITEM_LINK=${RSS_TITLE_LINK}${filename_wo_ext}.html
- RSS_ITEM_PUBDATE=""
+ RSS_ITEM_PUBDATE=${pubdaterfc822}
RSS_ITEM_DESC=$RSS_ITEM_TITLE
cat template_rss_item.xml >> index.xml
python3 pyreplace.py '$ITEM_TITLE$' "${RSS_ITEM_TITLE}" index.xml
python3 pyreplace.py '$ITEM_LINK$' "${RSS_ITEM_LINK}" index.xml
- python3 pyreplace.py '$ITEM_PUBDATE$' "${RSS_ITEM_PUIBDATE}" index.xml
+ python3 pyreplace.py '$ITEM_PUBDATE$' "${RSS_ITEM_PUBDATE}" index.xml
python3 pyreplace.py '$ITEM_DESC$' "${RSS_ITEM_DESC}" index.xml
fi
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa