Summary Files Commits Branches @commit @diff @stats
path: root / meta / meta.awk
diff options
context:
space:
mode:
1 files changed, 5 insertions, 1 deletions
-rw-r--r--meta/meta.awk6
diff --git a/meta/meta.awk b/meta/meta.awk
index f586fef..f5c3c15 100644
--- a/meta/meta.awk
+++ b/meta/meta.awk
@@ -27,7 +27,11 @@ BEGIN {
gsub(/\$TITLE/, meta_title[FILENAME], start)
gsub(/\$DESCRIPTION/, meta_description[FILENAME], start)
- print start getfile(ARGV[i]) FOOTER > ARGV[i]
+ end = FOOTER
+ sub(/html$/, "du", FILENAME)
+ gsub(/\$DUNBAR_SOURCE/, "/" FILENAME, end)
+
+ print start getfile(ARGV[i]) end > ARGV[i]
#-- Add to sitemap --#
print "<url><loc>" ENVIRON["URL"] substr(ARGV[i], length(ENVIRON["DST"]) + 1) "</loc><lastmod>" date "</lastmod><priority>1.0</priority></url>" > sitemap