From 2930632c5e0a53eeda24aaaf66bc3c2aab758dba Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 22 May 2022 12:13:41 +0200 Subject: Added build for gemini; changed logo to img --- .gitignore | 1 + bottom.gmi | 5 +++++ build.sh | 12 ++++++++++++ src/style.css | 5 +++++ top.html | 22 +--------------------- 5 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 bottom.gmi diff --git a/.gitignore b/.gitignore index aded5c6..18bd88b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ http +gemini BLOG-IDEAS HTML-TIPS diff --git a/bottom.gmi b/bottom.gmi new file mode 100644 index 0000000..2a8794d --- /dev/null +++ b/bottom.gmi @@ -0,0 +1,5 @@ +--- +=> mailto:sebastiano@tronto.net Email me at sebastiano@tronto.net +=> gemini://sebastiano.tronto.net Blog +=> gemini://sebastiano.tronto.net Home +=> https://sebastiano.tronto.net website diff --git a/build.sh b/build.sh index 4e117b3..8ccb2c8 100755 --- a/build.sh +++ b/build.sh @@ -2,10 +2,13 @@ recursivebuild() { local destdir=$(echo $1 | sed 's|^src|http|') + local destdir_gmi=$(echo $1 | sed 's|^src|gemini|') mkdir -p "$destdir" + mkdir -p "$destdir_gmi" for file in $(ls $1); do if [ -d "$1/$file" ]; then mkdir -p "$destdir/$file" + mkdir -p "$destdir_gmi/$file" recursivebuild "$1/$file" else extension=$(echo "$file" | sed 's/.*\.//') @@ -15,6 +18,11 @@ recursivebuild() { > "$destdir/index.html" lowdown "$1/$file" >> "$destdir/index.html" cat bottom.html >> "$destdir/index.html" + + lowdown -Tgemini --gemini-link-roman \ + --gemini-link-end \ + "$1/$file" > "$destdir_gmi/index.gmi" + cat bottom.gmi >> "$destdir_gmi/index.gmi" elif [ "$extension" = "html" ]; then cat top.html "$1/$file" bottom.html \ | sed "s/TITLE/$(grep '$//')/" \ > "$destdir/index.html" + elif [ "$extension" = "gmi" ]; then + cat "$1/$file" bottom.gmi > \ + "$destdir_gmi/index.gmi" else cp "$1/$file" "$destdir/$file" + cp "$1/$file" "$destdir_gmi/$file" fi fi done diff --git a/src/style.css b/src/style.css index 7016a47..d40758f 100644 --- a/src/style.css +++ b/src/style.css @@ -2,6 +2,11 @@ header nav table { width: 100%; } +.logo img { + max-width: 3em; + margin: 0 0 0 0; +} + .links { text-align: right; font-weight: bold; diff --git a/top.html b/top.html index 6dd90ac..4848666 100644 --- a/top.html +++ b/top.html @@ -15,27 +15,7 @@ - - - - st - - + Home -- cgit v1.3