diff options
| Commit | cb3e5fa49cd0569ac561ebb174202b22763f7adf (patch) | |
|---|---|---|
| Author | 2025-07-28 17:51:51 +0300 | |
| Committer | 2025-07-28 17:51:51 +0300 | |
| Files | f82cf4da9fe8748405bc51f26e2de3aa0e8b1566 /ext | |
| syndamia.com-cb3e5fa49cd0569ac561ebb174202b22763f7adf.tar syndamia.com-cb3e5fa49cd0569ac561ebb174202b22763f7adf.tar.gz syndamia.com-cb3e5fa49cd0569ac561ebb174202b22763f7adf.zip | ||
| Parent | 3075db4d8c20b91100e4def19444aac6fe21e0d6 (diff) | |
feat(ext/meta): Show an error if meta description is too long
1 files changed, 2 insertions, 0 deletions
| -rw-r--r-- | ext/meta.awk | 2 |
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=" " } |