From d792cfc4f2b6b53bf2174c3f3e3fea147524ede8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 17 Aug 2025 17:50:03 +0300 Subject: feat!: Update dunbar version The main difference is how the header and footer are handled. Before they were inserted as "include_markup", but now they are as "include". --- ext/meta.awk | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 ext/meta.awk (limited to 'ext/meta.awk') diff --git a/ext/meta.awk b/ext/meta.awk deleted file mode 100644 index 35e4f2b..0000000 --- a/ext/meta.awk +++ /dev/null @@ -1,24 +0,0 @@ -BEGIN { - FS="\t" - while ((getline < ENVIRON["META"]) > 0) { - 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=" " -} - -FNR == 0 { - STD_FILENAME = substr(FILENAME, length(ENVIRON["GEN_DIR"]) + 2) - - if (STD_FILENAME in meta_title) { - substitutions["TITLE"] = meta_title[STD_FILENAME] - substitutions["DESCRIPTION"] = meta_description[STD_FILENAME] - } - else { - delete substitutions["TITLE"] - delete substitutions["DESCRIPTION"] - } -} -- cgit v1.3.1-26-gb76a