summaryrefslogtreecommitdiff
path: root/gemfeed/2023-10-29-kiss-static-web-photo-albums-with-photoalbum.sh.html
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-23 07:55:27 +0300
committerPaul Buetow <paul@buetow.org>2025-06-23 07:55:27 +0300
commitd2be28ca4b86021518caddac606e553a54dd8927 (patch)
treee7c622c27973f6feff85c7be9b8f4e94fcafcfbd /gemfeed/2023-10-29-kiss-static-web-photo-albums-with-photoalbum.sh.html
parentb4151488cc973e8ed3f507cb850ece7f0d9d40cd (diff)
Update content for html
Diffstat (limited to 'gemfeed/2023-10-29-kiss-static-web-photo-albums-with-photoalbum.sh.html')
-rw-r--r--gemfeed/2023-10-29-kiss-static-web-photo-albums-with-photoalbum.sh.html118
1 files changed, 59 insertions, 59 deletions
diff --git a/gemfeed/2023-10-29-kiss-static-web-photo-albums-with-photoalbum.sh.html b/gemfeed/2023-10-29-kiss-static-web-photo-albums-with-photoalbum.sh.html
index 044134e7..a0f4b9a2 100644
--- a/gemfeed/2023-10-29-kiss-static-web-photo-albums-with-photoalbum.sh.html
+++ b/gemfeed/2023-10-29-kiss-static-web-photo-albums-with-photoalbum.sh.html
@@ -130,42 +130,42 @@ photoalbum makemake
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
-<pre><b><font color="#ee5896">%</font></b><font color="#ffffff"> photoalbum makemake</font>
-<font color="#ffffff">You may now customize </font><b><font color="#ee5896">.</font></b><font color="#ffffff">/photoalbumrc and run make</font>
+<pre>% photoalbum makemake
+You may now customize ./photoalbumrc and run make
-<b><font color="#ee5896">%</font></b><font color="#ffffff"> cat Makefile</font>
-<font color="#ffffff">all</font><b><font color="#ee5896">:</font></b>
-<font color="#ffffff"> photoalbum generate photoalbumrc</font>
-<font color="#ffffff">clean</font><b><font color="#ee5896">:</font></b>
-<font color="#ffffff"> photoalbum clean photoalbumrc</font>
+% cat Makefile
+all:
+ photoalbum generate photoalbumrc
+clean:
+ photoalbum clean photoalbumrc
-<b><font color="#ee5896">%</font></b><font color="#ffffff"> cat photoalbumrc</font>
-<i><font color="#00ff00"># The title of the photoalbum</font></i>
-<font color="#ffffff">TITLE</font><b><font color="#ee5896">=</font></b><font color="#cd00ff">'A simple Photoalbum'</font>
+% cat photoalbumrc
+<i><font color="silver"># The title of the photoalbum</font></i>
+TITLE=<font color="#808080">'A simple Photoalbum'</font>
-<i><font color="#00ff00"># Thumbnail height geometry</font></i>
-<font color="#ffffff">THUMBHEIGHT</font><b><font color="#ee5896">=</font></b><font color="#ff00ff">300</font>
-<i><font color="#00ff00"># Normal geometry height (when viewing photo). Uncomment, to keep original size.</font></i>
-<font color="#ffffff">HEIGHT</font><b><font color="#ee5896">=</font></b><font color="#ff00ff">1200</font>
-<i><font color="#00ff00"># Max previews per page.</font></i>
-<font color="#ffffff">MAXPREVIEWS</font><b><font color="#ee5896">=</font></b><font color="#ff00ff">40</font>
-<i><font color="#00ff00"># Randomly shuffle all previews.</font></i>
-<i><font color="#00ff00"># SHUFFLE=yes</font></i>
+<i><font color="silver"># Thumbnail height geometry</font></i>
+THUMBHEIGHT=<font color="#000000">300</font>
+<i><font color="silver"># Normal geometry height (when viewing photo). Uncomment, to keep original size.</font></i>
+HEIGHT=<font color="#000000">1200</font>
+<i><font color="silver"># Max previews per page.</font></i>
+MAXPREVIEWS=<font color="#000000">40</font>
+<i><font color="silver"># Randomly shuffle all previews.</font></i>
+<i><font color="silver"># SHUFFLE=yes</font></i>
-<i><font color="#00ff00"># Diverse directories, need to be full paths, not relative!</font></i>
-<font color="#ffffff">INCOMING_DIR</font><b><font color="#ee5896">=</font></b><font color="#ffffff">$(pwd)</font><font color="#ffffff">/incoming</font>
-<font color="#ffffff">DIST_DIR</font><b><font color="#ee5896">=</font></b><font color="#ffffff">$(pwd)</font><font color="#ffffff">/dist</font>
-<font color="#ffffff">TEMPLATE_DIR</font><b><font color="#ee5896">=</font></b><font color="#ffffff">/usr/share/photoalbum/templates/default</font>
-<i><font color="#00ff00">#TEMPLATE_DIR=/usr/share/photoalbum/templates/minimal</font></i>
+<i><font color="silver"># Diverse directories, need to be full paths, not relative!</font></i>
+INCOMING_DIR=$(pwd)/incoming
+DIST_DIR=$(pwd)/dist
+TEMPLATE_DIR=/usr/share/photoalbum/templates/default
+<i><font color="silver">#TEMPLATE_DIR=/usr/share/photoalbum/templates/minimal</font></i>
-<i><font color="#00ff00"># Includes a .tar of the incoming dir in the dist, can be yes or no</font></i>
-<font color="#ffffff">TARBALL_INCLUDE</font><b><font color="#ee5896">=</font></b><font color="#ffffff">yes</font>
-<font color="#ffffff">TARBALL_SUFFIX</font><b><font color="#ee5896">=.</font></b><font color="#ffffff">tar</font>
-<font color="#ffffff">TAR_OPTS</font><b><font color="#ee5896">=</font></b><font color="#cd00ff">'-c'</font>
+<i><font color="silver"># Includes a .tar of the incoming dir in the dist, can be yes or no</font></i>
+TARBALL_INCLUDE=yes
+TARBALL_SUFFIX=.tar
+TAR_OPTS=<font color="#808080">'-c'</font>
-<i><font color="#00ff00"># Some debugging options</font></i>
-<i><font color="#00ff00">#set -e</font></i>
-<i><font color="#00ff00">#set -x</font></i>
+<i><font color="silver"># Some debugging options</font></i>
+<i><font color="silver">#set -e</font></i>
+<i><font color="silver">#set -x</font></i>
</pre>
<br />
<span>In the case for <span class='inlinecode'>irregular.ninja</span>, I changed the defaults to the following:</span><br />
@@ -174,38 +174,38 @@ http://www.gnu.org/software/src-highlite -->
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
-<pre><font color="#ffffff">--- photoalbumrc 2023-10-29 21:42:00.894202045 +0200</font>
-<font color="#ffffff">+++ photoalbumrc.new 2023-06-04 10:40:08.030994440 +0300</font>
-<font color="#ffffff">@@ -1,23 +1,24 @@</font>
-<font color="#ffffff"> # The title of the photoalbum</font>
-<font color="#ffffff">-TITLE='A simple Photoalbum'</font>
-<font color="#ffffff">+TITLE='Irregular.Ninja'</font>
+<pre>--- photoalbumrc 2023-10-29 21:42:00.894202045 +0200
++++ photoalbumrc.new 2023-06-04 10:40:08.030994440 +0300
+@@ -1,23 +1,24 @@
+ # The title of the photoalbum
+-TITLE='A simple Photoalbum'
++TITLE='Irregular.Ninja'
-<font color="#ffffff"> # Thumbnail height geometry</font>
-<font color="#ffffff">-THUMBHEIGHT=300</font>
-<font color="#ffffff">+THUMBHEIGHT=400</font>
-<font color="#ffffff"> # Normal geometry height (when viewing photo). Uncomment, to keep original size.</font>
-<font color="#ffffff">-HEIGHT=1200</font>
-<font color="#ffffff">+HEIGHT=1800</font>
-<font color="#ffffff"> # Max previews per page.</font>
-<font color="#ffffff"> MAXPREVIEWS=40</font>
-<font color="#ffffff">-# Randomly shuffle all previews.</font>
-<font color="#ffffff">-# SHUFFLE=yes</font>
-<font color="#ffffff">+# Randomly shuffle</font>
-<font color="#ffffff">+SHUFFLE=yes</font>
+ # Thumbnail height geometry
+-THUMBHEIGHT=300
++THUMBHEIGHT=400
+ # Normal geometry height (when viewing photo). Uncomment, to keep original size.
+-HEIGHT=1200
++HEIGHT=1800
+ # Max previews per page.
+ MAXPREVIEWS=40
+-# Randomly shuffle all previews.
+-# SHUFFLE=yes
++# Randomly shuffle
++SHUFFLE=yes
-<font color="#ffffff"> # Diverse directories, need to be full paths, not relative!</font>
-<font color="#ffffff">-INCOMING_DIR=$(pwd)/incoming</font>
-<font color="#ffffff">+INCOMING_DIR=~/Nextcloud/Photos/irregular.ninja</font>
-<font color="#ffffff"> DIST_DIR=$(pwd)/dist</font>
-<font color="#ffffff"> TEMPLATE_DIR=/usr/share/photoalbum/templates/default</font>
-<font color="#ffffff"> #TEMPLATE_DIR=/usr/share/photoalbum/templates/minimal</font>
+ # Diverse directories, need to be full paths, not relative!
+-INCOMING_DIR=$(pwd)/incoming
++INCOMING_DIR=~/Nextcloud/Photos/irregular.ninja
+ DIST_DIR=$(pwd)/dist
+ TEMPLATE_DIR=/usr/share/photoalbum/templates/default
+ #TEMPLATE_DIR=/usr/share/photoalbum/templates/minimal
-<font color="#ffffff"> # Includes a .tar of the incoming dir in the dist, can be yes or no</font>
-<font color="#ffffff">-TARBALL_INCLUDE=yes</font>
-<font color="#ffffff">+TARBALL_INCLUDE=no</font>
-<font color="#ffffff"> TARBALL_SUFFIX=.tar</font>
-<font color="#ffffff"> TAR_OPTS='-c'</font>
+ # Includes a .tar of the incoming dir in the dist, can be yes or no
+-TARBALL_INCLUDE=yes
++TARBALL_INCLUDE=no
+ TARBALL_SUFFIX=.tar
+ TAR_OPTS='-c'
</pre>
<br />
<span>So I changed the album title, adjusted some image and thumbnail dimensions, and I want all images to be randomly shuffled every time the album is generated! I also have all my photos in my Nextcloud Photo directory and don&#39;t want to copy them to the local <span class='inlinecode'>incoming</span> directory. Also, a tarball containing the whole album as a download isn&#39;t provided.</span><br />