From b8f7beb334a08d7499a2909e9e0b7e3cbf3641c7 Mon Sep 17 00:00:00 2001 From: Devin Green Date: Wed, 20 Jul 2022 13:57:06 -0500 Subject: [PATCH 1/2] added sitemap generation for all front facing data types --- pages/sitemap.htm | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100755 pages/sitemap.htm diff --git a/pages/sitemap.htm b/pages/sitemap.htm new file mode 100755 index 0000000..b8a31d4 --- /dev/null +++ b/pages/sitemap.htm @@ -0,0 +1,56 @@ +url = "/sitemap.xml" +title = "Sitemap" + +[collection pages] +handle = "Content\Page" + +[collection events] +handle = "Content\Event" + +[collection product] +handle = "Content\Product" + +[collection product_categories] +handle = "Content\Product\Category" +== +setResponseHeader('Content-Type', 'application/xml'); +} +?> +== + + + {% for page in pages %} + + {{ 'page'|page({page: page.slug}) }} + {{ 'now'|date('Y-m-d') }} + daily + 0.8 + + {% endfor %} + {% for event in events %} + + {{ 'event'|page({event: event.slug}) }} + {{ 'now'|date('Y-m-d') }} + daily + 0.8 + + {% endfor %} + {% for product in products %} + + {{ 'product'|page({product: product.slug}) }} + {{ 'now'|date('Y-m-d') }} + daily + 0.8 + + {% endfor %} + {% for category in product_categories %} + + {{ 'product_category'|page({product_category: category.slug}) }} + {{ 'now'|date('Y-m-d') }} + daily + 0.8 + + {% endfor %} + \ No newline at end of file From 44fa08089cd715269c9b56c29833642e744f8e71 Mon Sep 17 00:00:00 2001 From: Devin Green Date: Wed, 20 Jul 2022 13:59:33 -0500 Subject: [PATCH 2/2] version bump updated readme --- README.md | 1 + version.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f643eaf..5c620c4 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Once you've seeded the theme, head over to the content settings in the backend a - Events with recurring events support. (See [Events](#events)) - Shop with Stripe Support (See [Shop](#events)) - Icons with Bootstrap Icons (See [Icons](#icons)) +- Automatic Sitemap generation for all front facing pages created by Tailor. ### Things to Know - Upon loading the theme, you'll get a 404. That's normal if you don't have a Home Page setup under Content > Settings. diff --git a/version.yaml b/version.yaml index 20fd8ef..6d31ffb 100644 --- a/version.yaml +++ b/version.yaml @@ -12,4 +12,5 @@ v1.2.5: Added orders to shop. Cleaned up code. Added plugin dependency via git f v1.2.6: Disabled shop if Stripe Keys are not set. v1.2.7: Added new menu item types to theme. v1.2.8: Updated section columns to have events and products. -v1.2.9: Added contact form to builder and builder > section > columns. \ No newline at end of file +v1.2.9: Added contact form to builder and builder > section > columns. +v2.0.0: Added sitemap auto generation for front facing pages in Tailor \ No newline at end of file