wimdupont.com

Source code for www.wimdupont.com
git clone git://git.wimdupont.com/wimdupont.com.git
Log | Files | Refs | README | LICENSE

commit 4b13997b24583b573eeeae75ba7a18e17749fdea
parent 2a1c70c7109f5d83701a6321ff215ec81b522a1b
Author: Wim Dupont <wim@wimdupont.com>
Date:   Mon, 14 Jul 2025 21:57:12 +0200

separated suggested links

Diffstat:
A.gitignore | 1+
Mcontent/links.csv | 2--
Mgenerate.sh | 19+++++++++++++++++++
3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +content/suggestions.csv diff --git a/content/links.csv b/content/links.csv @@ -1,7 +1,5 @@ Git;https://git.wimdupont.com;Git page with source code of this website and other projects; RSS;rss.xml;RSS feed of the blog page; -Article: Children's digital privacy;https://masteroflegalstudies.com/resources/ensuring-childrens-digital-privacy/;A parent's guide to ensuring their children's digital privacy _(suggested)_;Privacy/Digital rights -Article: Privacy/Security tools;https://www.wizcase.com/blog/free-privacy-security-tools/;75+ Free and Open-Source Tools to Enhance Your Privacy and Security _(suggested)_;Privacy/Digital rights Electronic Frontier Foundation;https://www.eff.org/;EFF homepage - non-profit digital rights group;Privacy/Digital rights Free Software Foundation;https://www.fsf.org/;FSF homepage - great resource to get to know Free/Libre Software and its importance;Privacy/Digital rights Privacy Guides;https://privacyguides.org/;useful information about digital privacy including software recommendations and tips;Privacy/Digital rights diff --git a/generate.sh b/generate.sh @@ -17,6 +17,7 @@ readonly SOFTWARE_REPO_DIR=$HREF_REPO_DIR/software readonly ERROR_REPO_DIR=$PAGES_REPO_DIR/error readonly BOOKLIST_FILE=$REPO_PATH/content/booklist.csv readonly LINKS_FILE=$REPO_PATH/content/links.csv +readonly SUGGESTIONS_FILE=$REPO_PATH/content/suggestions.csv readonly HEADER_FILE=$PAGES_REPO_DIR/header.adoc readonly FOOTER_FILE=$PAGES_REPO_DIR/footer.adoc @@ -171,12 +172,30 @@ generate_links_page() { echo "* link:$url[$title] - $description" >> $DEST_FILE done < "$LINKS_FILE" + + add_suggestions + cd $NGINX_DIR get_page_footer >> $DEST_FILE asciidoctor $DEST_FILE rm $DEST_FILE } +add_suggestions() { + declare -r DEST_FILE=/usr/share/nginx/html/links.adoc + + test ! -e $SUGGESTIONS_FILE && return 0; + + sort -t';' -k1,1 -o $SUGGESTIONS_FILE $SUGGESTIONS_FILE + + echo -e "\n== Suggested pages/articles\n" >> $DEST_FILE + + while IFS=';' read title url description ; do + echo "* link:$url[$title] - $description" >> $DEST_FILE + + done < "$SUGGESTIONS_FILE" +} + generate_rss() { cd $BLOG_REPO_DIR echo '<rss version="2.0"><channel><title>Wim Dupont - Blog</title><link>https://wimdupont.com/blog</link><language>en</language>' > $RSS_DEST_FILE