From 6a628110fef7c20e9c984287781c56b951f476b9 Mon Sep 17 00:00:00 2001 From: hitlerrip Date: Tue, 29 Jul 2025 10:57:22 +0200 Subject: article list improvements - styled article list - added dynamically generated article list to markdown index - (initial run.sh) --- README.md | 2 +- build.sh | 15 ++++++++++++--- con/style.css | 14 +++++++++++++- run.sh | 39 +++++++++++++++++++++++++++++++++++++++ src/articles/index.md | 4 +--- src/articles/zwei.md | 1 + 6 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 run.sh create mode 100644 src/articles/zwei.md diff --git a/README.md b/README.md index 657a82b..bf465f7 100644 --- a/README.md +++ b/README.md @@ -41,4 +41,4 @@ custom directories are not supported yet. you will have to manually edit the bui - 404 page -- style contact information, style article list +- style contact information diff --git a/build.sh b/build.sh index 19653ff..4e18dbe 100755 --- a/build.sh +++ b/build.sh @@ -84,9 +84,6 @@ for i in *.md; do if [ "$filename" == "index" ]; then echo "[build] skipping index file for later..." - - cp "$i" ../../web/articles/ - else mkdir -p ../../web/articles/"$filename"/ @@ -139,6 +136,14 @@ for i in *.md; do EOF + touch ../../tmp/articles/gen-articles-tmp-list.md + tee -a ../../tmp/articles/gen-articles-tmp-list.md > /dev/null << EOF + +## [$WEBMETA_TITLE]($filename) +###### \`$WEBMETA_DATE\` by $WEBMETA_AUTH +$WEBMETA_SUMMARY +EOF + touch ../../tmp/articles/gen-articles-tmp-rss.xml tee -a ../../tmp/articles/gen-articles-tmp-rss.xml > /dev/null << EOF @@ -165,6 +170,10 @@ cat ./con/header.html \ ./con/footer.html \ > ./web/articles/index.html +cat ./src/articles/index.md \ + ./tmp/articles/gen-articles-tmp-list.md \ + > ./web/articles/index.md + cat ./con/rss-header.xml \ ./tmp/articles/gen-articles-tmp-rss.xml \ ./con/rss-footer.xml \ diff --git a/con/style.css b/con/style.css index df54508..d417ce8 100644 --- a/con/style.css +++ b/con/style.css @@ -65,6 +65,9 @@ footer { text-align: center; color: #6c7086; margin: 15px 0 15px 0; + @media (width < 48rem) { + margin: 15px 25px 15px 25px; + } } footer hr { color: #6c7086; @@ -80,7 +83,6 @@ footer a { color: #6c7086; } - main { display: flex; align-items: center; @@ -90,6 +92,7 @@ main { } main > div { width: 100%; + margin: 0 25px 0 25px; @media (width >= 48rem) { max-width: 700px; } @@ -206,3 +209,12 @@ img { margin-left: auto; margin-right: auto; } + +article { + border: 2px solid #45475a; + padding: 10px; + margin-bottom: 10px; +} +article p { + text-align: center; +} diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..d4ddc3f --- /dev/null +++ b/run.sh @@ -0,0 +1,39 @@ +#!/bin/sh +clear +echo "####################" +echo "# WEBSERVER RUNNER #" +echo "# »» hitler.rip «« #" +echo "####################" +echo +echo "[run] Note:" +echo "[run] this script assumes you already have an openssh server set up." +echo + +sudo apt update +sudo apt upgrade -y + +sudo apt install -y sudo vim git curl wget btop + +# ADDITIONAL PACKAGES: +# lvm cryptsetup +# bind (nslookup) traceroute gnu-netcat +# man-pages man-db +# rsync +# ed bc +# nodejs npm +# unrar-free zip unzip +# smartmontools + +# WITH CONFIG: +# tmux +# my shell script +# fzf bat eza +# (vim btop) + +# ALSO: +# ufw +# fail2ban +# nginx + +sudo usermod -aG sudo "$(whoami)" + diff --git a/src/articles/index.md b/src/articles/index.md index 07a9666..6112c8a 100644 --- a/src/articles/index.md +++ b/src/articles/index.md @@ -1,5 +1,3 @@ # Articles -###### Subscribe to the [RSS Feed](feed.xml) - -- - - +##### Subscribe to the [RSS Feed](feed.xml) diff --git a/src/articles/zwei.md b/src/articles/zwei.md new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/src/articles/zwei.md @@ -0,0 +1 @@ +test -- cgit v1.2.3