diff options
1 files changed, 3 insertions, 3 deletions
| -rw-r--r-- | meta/meta.awk | 6 |
diff --git a/meta/meta.awk b/meta/meta.awk index 7688d6a..f586fef 100644 --- a/meta/meta.awk +++ b/meta/meta.awk @@ -10,7 +10,7 @@ BEGIN { HEADER = getfile(ENVIRON["HEADER"]) FOOTER = getfile(ENVIRON["FOOTER"]) - sitemap = ENVIRON["GEN_DIR"] "/sitemap.xml" + sitemap = ENVIRON["DST"] "/sitemap.xml" print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" ORS \ "<urlset" ORS \ "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" ORS \ @@ -23,14 +23,14 @@ BEGIN { #-- Add header and footer --# start = HEADER - FILENAME = substr(ARGV[i], length(ENVIRON["GEN_DIR"]) + 2) + FILENAME = substr(ARGV[i], length(ENVIRON["DST"]) + 2) gsub(/\$TITLE/, meta_title[FILENAME], start) gsub(/\$DESCRIPTION/, meta_description[FILENAME], start) print start getfile(ARGV[i]) FOOTER > ARGV[i] #-- Add to sitemap --# - print "<url><loc>" ENVIRON["URL"] substr(ARGV[i], length(ENVIRON["GEN_DIR"]) + 1) "</loc><lastmod>" date "</lastmod><priority>1.0</priority></url>" > sitemap + print "<url><loc>" ENVIRON["URL"] substr(ARGV[i], length(ENVIRON["DST"]) + 1) "</loc><lastmod>" date "</lastmod><priority>1.0</priority></url>" > sitemap } print "</urlset>" > sitemap |