summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-18 08:45:22 -0300
committerEuAndreh <eu@euandre.org>2024-11-18 08:45:22 -0300
commitd6ff6870ef6f7d2d47c102d8722a1e97a911a847 (patch)
tree2f4ed90c4f80aebaf7355658377a135bb02bf954
parentRename atom -> feed (diff)
downloadmkwb-d6ff6870ef6f7d2d47c102d8722a1e97a911a847.tar.gz
mkwb-d6ff6870ef6f7d2d47c102d8722a1e97a911a847.tar.xz
src/conf: Do not error on missing title
-rwxr-xr-xsrc/conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf b/src/conf
index ae39874..bdc9f1b 100755
--- a/src/conf
+++ b/src/conf
@@ -152,7 +152,8 @@ if is_article; then
fi
BASE_URL="$(base_url)"
-TITLE_RAW="$(cat -- "$FILENAME" | grep '^= .*' | head -n1 | cut -d' ' -f2-)"
+TITLE_RAW="$(cat -- "$FILENAME" | grep '^= .*' | head -n1 | cut -d' ' -f2- ||
+ echo 'MISSING')"
TITLEFULL_RAW="$TITLE_RAW | $site_name"
if [ -z "${css_url:-}" ]; then