From f61345a960dfb41352bda2e79c3a6b2b05d1eecc Mon Sep 17 00:00:00 2001 From: Ephraim-G Date: Wed, 30 Oct 2024 16:16:35 -0400 Subject: [PATCH 1/2] add url to global data file, add site.url in sitemap --- _data/site.yaml | 3 +++ sitemap.xml.njk | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/_data/site.yaml b/_data/site.yaml index aebcf2d..71f30df 100644 --- a/_data/site.yaml +++ b/_data/site.yaml @@ -7,6 +7,9 @@ description: >- # this means to ignore newlines # Twitter handle. Only the handle, not the URL. twitter: 18F +# Used to construct absolute URLs throughout the site +url: "https://your-prod-url-here" + ################################################################# # # Digital Analytics Program (DAP) configuration diff --git a/sitemap.xml.njk b/sitemap.xml.njk index 3e4054f..6538ac1 100644 --- a/sitemap.xml.njk +++ b/sitemap.xml.njk @@ -5,9 +5,8 @@ eleventyExcludeFromCollections: true {%- for page in collections.all %} - {% set absoluteUrl %}{{ page.url | url | absoluteUrl }}{% endset %} - {{ absoluteUrl }} + {{ site.url }}{{ page.url }} {{ page.date | htmlDateString }} {%- endfor %} From 0a37d8c133d6c7a4a3273adb0cc569ddb361f98b Mon Sep 17 00:00:00 2001 From: Ephraim-G Date: Mon, 4 Nov 2024 10:50:31 -0500 Subject: [PATCH 2/2] add .gov --- _data/site.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/site.yaml b/_data/site.yaml index 71f30df..7bfa30e 100644 --- a/_data/site.yaml +++ b/_data/site.yaml @@ -8,7 +8,7 @@ description: >- # this means to ignore newlines twitter: 18F # Used to construct absolute URLs throughout the site -url: "https://your-prod-url-here" +url: "https://agency-production-url.gov" ################################################################# #