From cb3e5fa49cd0569ac561ebb174202b22763f7adf Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 28 Jul 2025 17:51:51 +0300 Subject: feat(ext/meta): Show an error if meta description is too long --- ext/meta.awk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/meta.awk') diff --git a/ext/meta.awk b/ext/meta.awk index 1815cdf..35e4f2b 100644 --- a/ext/meta.awk +++ b/ext/meta.awk @@ -4,6 +4,8 @@ BEGIN { if ($1 == "") continue meta_title[$1] = $2 " — Syndamia" meta_description[$1] = $3 + if (length($3) > 200) + warning("Description for file \"" $1 "\" is longer than 200 characters!", "Shorten the description field in the \"" ENVIRON["META"] "\" file.") } FS=" " } -- cgit v1.3.1-26-gb76a