1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# The title of the shuriken
TITLE='A simple Shuriken'
# Thumbnail height geometry
THUMBHEIGHT=300
# Normal geometry height (when viewing photo). Uncomment, to keep original size.
HEIGHT=1200
# Max previews per page.
MAXPREVIEWS=40
# Percent chance (0-100) that a thumbnail tile is subdivided into smaller
# thumbnails (a 2x2 quad, two stacked wide strips, or two squares plus one wide
# strip with the strip on top or bottom). Each sub-thumbnail is still its own
# clickable photo. 0 disables subdivision; 100 always subdivides.
THUMB_SUBDIVIDE_PERCENT=30
# Percent chance (0-100) that a thumbnail tile is a large "feature" tile: a
# single photo blown up to span a 2x2 block of the overview grid. Rolled before
# the subdivision chance. 0 disables feature tiles; 100 makes every tile a
# feature.
THUMB_FEATURE_PERCENT=10
# Parallel jobs for image processing and HTML template rendering.
IMAGE_JOBS=3
# Timeout in seconds for each ImageMagick command.
IMAGEMAGICK_TIMEOUT=60
# Randomly shuffle all previews.
# SHUFFLE=yes
# Generate a splash landing page at index.html.
SPLASH_PAGE=yes
# Generate a per-photo *-details.html page (the EXIF details view reachable via
# the "Details" link on each photo's view page) for every photo. Can be yes or
# no. On by default; set to no (or pass --no-details) to skip these pages and
# their "Details" links -- the normal thumbnail overview and per-photo view
# pages, EXIF tooltips, and the EXIF stats site are unaffected and stay
# independently controlled by STATS_PAGE.
DETAILS_PAGE=yes
# Generate an EXIF stats site (stats/ overview plus per-camera and filter
# mini-albums) and show the Stats navigation link in page headers. Can be yes or
# no. Off by default; set to yes (or pass --stats) to enable it.
STATS_PAGE=no
# Set to any non-empty value for repeatable background, animation, timestamp,
# and shuffled preview choices.
# RANDOM_SEED=album-build-1
# Diverse directories, need to be full paths, not relative!
INCOMING_DIR=$(pwd)/incoming
DIST_DIR=$(pwd)/dist
TEMPLATE_DIR=/usr/share/shuriken/templates/default
#TEMPLATE_DIR=/usr/share/shuriken/templates/minimal
# Custom favicon, published as favicon.ico. Leave unset/empty to use the bundled
# shuriken favicon. Can also be set with --favicon PATH.
#FAVICON=$(pwd)/my-favicon.ico
# Source/project link shown in the page footer ("Site generated ... with <URL>").
# Defaults to the shuriken.sh repository; point it at your own album's repo if you
# like. The displayed text is the URL without its scheme. Can also be set with
# --source-url URL.
#SOURCE_URL=https://codeberg.org/snonux/shuriken.sh
# Includes a .tar of the incoming dir in the dist, can be yes or no
TARBALL_INCLUDE=yes
TARBALL_SUFFIX=.tar
# Timeout in seconds for tar archive creation.
TAR_TIMEOUT=120
TAR_OPTS=(-c)
# Destinations for `shuriken --sync`. Each destination is passed to rsync
# with DIST_DIR/ as the source, so the generated contents are copied into the
# target directory. Sync deletes removed files from destinations by default.
# SYNC_DESTINATIONS must be a Bash array, even for a single destination, e.g.
# SYNC_DESTINATIONS=( '/path/with spaces/' ). A scalar string is rejected with
# an error because word-splitting would break destinations containing spaces.
SYNC_DELETE=yes
# Timeout in seconds for each rsync to a single destination. If one mirror hangs
# or times out, the remaining destinations are still attempted and --sync still
# reports failure.
SYNC_TIMEOUT=300
SYNC_DESTINATIONS=(
# admin@fishfinger.buetow.org:/var/www/htdocs/example.org/
# admin@blowfish.buetow.org:/var/www/htdocs/example.org/
)
# Some debugging options
#set -e
#set -x
|