Skip to content

Commit

Permalink
Merge branch 'release/v2.0.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
artistro08 committed Jul 20, 2022
2 parents f6ee8eb + 44fa080 commit 16678fc
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
56 changes: 56 additions & 0 deletions pages/sitemap.htm
Original file line number Diff line number Diff line change
@@ -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"
==
<?php
function onStart() {
$this->setResponseHeader('Content-Type', 'application/xml');
}
?>
==
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in pages %}
<url>
<loc>{{ 'page'|page({page: page.slug}) }}</loc>
<lastmod>{{ 'now'|date('Y-m-d') }}</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{% endfor %}
{% for event in events %}
<url>
<loc>{{ 'event'|page({event: event.slug}) }}</loc>
<lastmod>{{ 'now'|date('Y-m-d') }}</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{% endfor %}
{% for product in products %}
<url>
<loc>{{ 'product'|page({product: product.slug}) }}</loc>
<lastmod>{{ 'now'|date('Y-m-d') }}</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{% endfor %}
{% for category in product_categories %}
<url>
<loc>{{ 'product_category'|page({product_category: category.slug}) }}</loc>
<lastmod>{{ 'now'|date('Y-m-d') }}</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{% endfor %}
</urlset>
3 changes: 2 additions & 1 deletion version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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

0 comments on commit 16678fc

Please sign in to comment.