diff --git a/pages/robots/page-robots.htm b/pages/robots/page-robots.htm new file mode 100644 index 0000000..6a61857 --- /dev/null +++ b/pages/robots/page-robots.htm @@ -0,0 +1,13 @@ +--- +template: robots +protocol: all +published: true +name: Robots +url: /robots +--- +# robots.txt for http://www.example.com/ +User-agent: * +Disallow: /cyberworld/map/ # This is an infinite virtual URL space +Disallow: /tmp/ # these will soon disappear +Disallow: /foo.html +Sitemap: https://storename.lemonstand.com/sitemap \ No newline at end of file diff --git a/pages/sitemap/page-sitemap.htm b/pages/sitemap/page-sitemap.htm new file mode 100644 index 0000000..a65c8e9 --- /dev/null +++ b/pages/sitemap/page-sitemap.htm @@ -0,0 +1,46 @@ +--- +action: 'shop:products' +template: xml +protocol: all +published: true +name: Sitemap +url: /products.xml +--- + + +{% for product in products %} + + {% set page_url = "https:#{site_url('/')}product/#{product.url_name}" %} + {{ page_url }} + {{ product.updated_at|date("Y-m-d\\TH:i:sP") }} + +{% endfor %} + +{% for post in cmsContent('blog') %} + + {% set page_url = "#{post.permalink}" %} + {{ page_url }} + {{ post.published_on | date("Y-m-d\\TH:i:sP") }} + +{% endfor %} + +{% for url, code in pages %} +{% set page_url = "https:#{site_url('/')}#{url}" %} + {% if '/:' not in page_url %} + + {{ page_url | replace({"m//": "m/"}) }} + {{ page.published_on | date("Y-m-d\\TH:i:sP") }} + + {% endif %} +{% endfor %} + +{% for category in categories %} + + {% set page_url = "https:#{site_url('/')}/category/#{category.url_name}" %} + {{ page_url | replace({"m//": "m/"}) }} + {{ post.published_on | date("Y-m-d\\TH:i:sP") }} + +{% endfor %} + + + diff --git a/templates/robots.htm b/templates/robots.htm new file mode 100644 index 0000000..aa68af2 --- /dev/null +++ b/templates/robots.htm @@ -0,0 +1,4 @@ +--- +content_type: 'text/plain; charset=utf-8' +--- +{{ page() }} \ No newline at end of file diff --git a/templates/xml.htm b/templates/xml.htm new file mode 100644 index 0000000..f875f66 --- /dev/null +++ b/templates/xml.htm @@ -0,0 +1,4 @@ +--- +content_type: 'text/xml; charset=utf-8' +--- +{{ page() }} \ No newline at end of file