From 082cbf264a2f357786cc5030e5453bd9d0bb638c Mon Sep 17 00:00:00 2001 From: keni7385 Date: Mon, 25 Jul 2022 23:18:03 +0200 Subject: Mainly sswg bugfix: filenames with spaces --- _assets/css/style.css | 33 +++++++++++++++++++++++++++++++++ _assets/images/imgnotfound.jpg | Bin 0 -> 9337 bytes _assets/images/left-arrow.gif | Bin 0 -> 188 bytes _assets/images/right-arrow.gif | Bin 0 -> 187 bytes _assets/images/top-arrow.gif | Bin 0 -> 195 bytes _header.t.html | 2 +- _pages/index.html | 2 +- _pages/travels/index.html | 4 ++-- _pages/travels/pictures/index.html | 27 --------------------------- sswg.sh | 7 +++---- 10 files changed, 40 insertions(+), 35 deletions(-) create mode 100644 _assets/images/imgnotfound.jpg create mode 100644 _assets/images/left-arrow.gif create mode 100644 _assets/images/right-arrow.gif create mode 100644 _assets/images/top-arrow.gif delete mode 100755 _pages/travels/pictures/index.html diff --git a/_assets/css/style.css b/_assets/css/style.css index d5ca676..4517932 100755 --- a/_assets/css/style.css +++ b/_assets/css/style.css @@ -85,3 +85,36 @@ samp { display: block; line-height: 115%; } + +/* Photo book styles */ +div.photobook { + border: 1px solid #aaa; + margin: 10px; + float: left; + text-align: center; +} + +div.photobook:hover { + border: 1px solid #cfba58; +} + +div.desc { + padding: 10px; + text-align: center; + font-size: 14px; +} + +img.thumb { + margin: 5px; + border: 1px solid #aaa; +} + +img.thumb:hover { + border: 1px solid #cfba58; +} + +.clearfix:after { + content: ""; + display: table; + clear: both; +} diff --git a/_assets/images/imgnotfound.jpg b/_assets/images/imgnotfound.jpg new file mode 100644 index 0000000..c492d76 Binary files /dev/null and b/_assets/images/imgnotfound.jpg differ diff --git a/_assets/images/left-arrow.gif b/_assets/images/left-arrow.gif new file mode 100644 index 0000000..e22cf71 Binary files /dev/null and b/_assets/images/left-arrow.gif differ diff --git a/_assets/images/right-arrow.gif b/_assets/images/right-arrow.gif new file mode 100644 index 0000000..0d9d4c8 Binary files /dev/null and b/_assets/images/right-arrow.gif differ diff --git a/_assets/images/top-arrow.gif b/_assets/images/top-arrow.gif new file mode 100644 index 0000000..9e134b9 Binary files /dev/null and b/_assets/images/top-arrow.gif differ diff --git a/_header.t.html b/_header.t.html index 1b4d3bf..3dca264 100644 --- a/_header.t.html +++ b/_header.t.html @@ -21,7 +21,7 @@ Home | My notes | # Computing | - Travels | + Pictures | Email diff --git a/_pages/index.html b/_pages/index.html index 62ea2dd..a7d8b28 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -13,7 +13,7 @@ DESCRIPTION="Andrea Corsini's personal website" problems.

This website gathers my notes, - photos, and personal self-hosted services, + photos, and personal self-hosted services, such as email, git server, Jitsi instance, calendar, Matrix and others to come.

diff --git a/_pages/travels/index.html b/_pages/travels/index.html index 8755893..ad1183f 100755 --- a/_pages/travels/index.html +++ b/_pages/travels/index.html @@ -2,8 +2,8 @@ TITLE="Andrea Corsini's travels" DESCRIPTION="Andrea Corsini's travels and photos" ---

Travels

-

Browse - my photos in the travel pictures folder. +

Browse + my photos in the travel pictures folder. Although I'm not an expert photographer, I like to share some pictures from my trips.


diff --git a/_pages/travels/pictures/index.html b/_pages/travels/pictures/index.html deleted file mode 100755 index e1cfdc6..0000000 --- a/_pages/travels/pictures/index.html +++ /dev/null @@ -1,27 +0,0 @@ -TITLE="Listing of Pictures" -DESCRIPTION="Listing of Pictures" ---- -

Listing of Picture Thumbnails

-

- -Go back

-./ -
-china -
-estonia -
-estonia/tallin -
-finland -
-finland/porvo -
-finland/tampere -
-taiwan -
-taiwan/jiufeng -
-taiwan/taipei -
diff --git a/sswg.sh b/sswg.sh index 6e7b42d..d62233d 100755 --- a/sswg.sh +++ b/sswg.sh @@ -14,11 +14,10 @@ mkdir "$SSWG_OUTPUT_DIR" cp -r "$SSWG_ASSETS_DIR"/* "$SSWG_OUTPUT_DIR"/. # Generate HTML pages -for page in $(find "$SSWG_PAGES_DIR" -iname '*.html' -o \ - -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png'); +find "$SSWG_PAGES_DIR" -iname '*.html' -o -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' | while read -r page; do filename="$SSWG_OUTPUT_DIR/${page##$SSWG_PAGES_DIR/}" - mkdir -p "`dirname $filename`" + mkdir -p "$(dirname "$filename")" if [ "${filename##*.}" = "html" ]; then # prepose header @@ -45,6 +44,6 @@ do # useful e.g. with

 tags
         sed -i'' "s/^[ \t]*|//g" "$filename"  # remove
     else
-        cp $page $filename
+        cp "$page" "$filename"
     fi;
 done;
-- 
cgit v1.2.3-70-g09d2