wimdupont.com

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

commit f316269e5c6605f12cb2cb96fd8e80820da7b4a4
parent 4b13997b24583b573eeeae75ba7a18e17749fdea
Author: Wim Dupont <wim@wimdupont.com>
Date:   Mon, 21 Jul 2025 10:24:18 +0200

removed suggestions for simplicity

Diffstat:
D.gitignore | 1-
Mgenerate.sh | 19-------------------
2 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1 +0,0 @@ -content/suggestions.csv diff --git a/generate.sh b/generate.sh @@ -17,7 +17,6 @@ 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 @@ -170,32 +169,14 @@ generate_links_page() { category_check=$category fi 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