diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-11 10:43:19 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-11 10:43:19 +0300 |
| commit | 1e7b394e56085a9cc33b8b8b64b094d5223e8853 (patch) | |
| tree | d716db2d332904bb66f34572ec066d19170cd9cc /src/lib/bootstrap.source.sh | |
| parent | cbd3cf2be4ce50092ec4eb3f4b28d77c0aa044e4 (diff) | |
Add shuriken logo and generated favicon
Diffstat (limited to 'src/lib/bootstrap.source.sh')
| -rw-r--r-- | src/lib/bootstrap.source.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/bootstrap.source.sh b/src/lib/bootstrap.source.sh index bb309f9..3e514fc 100644 --- a/src/lib/bootstrap.source.sh +++ b/src/lib/bootstrap.source.sh @@ -109,6 +109,24 @@ resolve_default_template_dir() { printf '%s\n' "$DEFAULT_TEMPLATE_DIR" } +resolve_default_asset_dir() { + local source_root + + if [ -d "$DEFAULT_ASSET_DIR" ]; then + printf '%s\n' "$DEFAULT_ASSET_DIR" + return + fi + + source_root=$(resolve_source_root) + + if [ -n "$source_root" ]; then + printf '%s\n' "$source_root/assets/site" + return + fi + + printf '%s\n' "$DEFAULT_ASSET_DIR" +} + template_dir_uses_default() { if [ -z "${TEMPLATE_DIR+x}" ] || [ -z "$TEMPLATE_DIR" ]; then return 1 |
