From 61c744e104acea884a5cb6993405af6f685949bc Mon Sep 17 00:00:00 2001 From: = Date: Sat, 7 Jan 2023 13:40:51 +0100 Subject: fix link (.md >> .html) --- index.xml | 26 ++++++++------------------ update.sh | 17 ++++++++--------- 2 files changed, 16 insertions(+), 27 deletions(-) diff --git a/index.xml b/index.xml index df56e14..88c9bd0 100644 --- a/index.xml +++ b/index.xml @@ -1,8 +1,8 @@ - pub-docs + omeckman.net pub-docs https://omeckman.net/pub-docs/ - public documents + omeckman.net public documents / $blog en-us @@ -11,9 +11,9 @@ 2020-06-23-182943_Backpacks - https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.md + https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.html - https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.md + https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.html 2020-06-23-182943_Backpacks @@ -21,9 +21,9 @@ 2021-06-28-103922_TestingSrtGear - https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.md + https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.html - https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.md + https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.html 2021-06-28-103922_TestingSrtGear @@ -31,24 +31,14 @@ 2022-09-24-190300_Nuki1Retrospective - https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.md + https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.html - https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.md + https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.html 2022-09-24-190300_Nuki1Retrospective - - INDEX - https://omeckman.net/pub-docs/INDEX.md - - https://omeckman.net/pub-docs/INDEX.md - - INDEX - - - diff --git a/update.sh b/update.sh index 0e695a6..baeca3a 100755 --- a/update.sh +++ b/update.sh @@ -1,9 +1,9 @@ #!/bin/bash # RSS -RSS_TITLE='pub-docs' +RSS_TITLE='omeckman.net pub-docs' RSS_TITLE_LINK='https://omeckman.net/pub-docs/' -RSS_TITLE_DESC='public documents' +RSS_TITLE_DESC='omeckman.net public documents / $blog' RSS_MY_URL=${RSS_TITLE_LINK} cp INDEX_template.md INDEX.md @@ -21,9 +21,14 @@ do filename_wo_ext=$(echo "$i" | cut -f 1 -d '.') if [ $filename_wo_ext != "template" ] && [ $filename_wo_ext != "INDEX_template" ] then + pandoc $i -s --highlight-style pygments --css=style.css --self-contained -t html5 -o $filename_wo_ext.html + + if [ $filename_wo_ext != "INDEX" ] + then + echo "[$filename_wo_ext]($filename_wo_ext.html) " >> INDEX.md RSS_ITEM_TITLE="$filename_wo_ext" - RSS_ITEM_LINK=${RSS_TITLE_LINK}${i} + RSS_ITEM_LINK=${RSS_TITLE_LINK}${filename_wo_ext}.html RSS_ITEM_PUBDATE="" RSS_ITEM_DESC=$RSS_ITEM_TITLE cat template_rss_item.xml >> index.xml @@ -31,12 +36,6 @@ do python3 pyreplace.py '$ITEM_LINK$' "${RSS_ITEM_LINK}" index.xml python3 pyreplace.py '$ITEM_PUBDATE$' "${RSS_ITEM_PUIBDATE}" index.xml python3 pyreplace.py '$ITEM_DESC$' "${RSS_ITEM_DESC}" index.xml - - pandoc $i -s --highlight-style pygments --css=style.css --self-contained -t html5 -o $filename_wo_ext.html - - if [ $filename_wo_ext != "INDEX" ] - then - echo "[$filename_wo_ext]($filename_wo_ext.html) " >> INDEX.md fi fi -- cgit v1.2.2-1-g5e49