diff options
Diffstat (limited to 'lib/notes.source.sh')
| -rw-r--r-- | lib/notes.source.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/notes.source.sh b/lib/notes.source.sh index b82631d..0f5251d 100644 --- a/lib/notes.source.sh +++ b/lib/notes.source.sh @@ -11,6 +11,11 @@ notes::_get_notes () { # Generate a index.gmi in the ./notes subdir. notes::generate () { local -r notes_dir="$CONTENT_BASE_DIR/gemtext/notes" + if [ ! -d "$notes_dir" ]; then + log INFO "Capsule without Notes section" + return + fi + log INFO "Generating Notes index for $notes_dir" cat <<NOTES > "$notes_dir/index.gmi.tmp" |
