--- --- {% assign pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"' %} {% for page in pages %} {% capture last_modified_at %} {% if page.last_modified_at %} {{ page.last_modified_at | date_to_xmlschema }} {% endif %} {% endcapture %} {{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }} {{last_modified_at}} {% if page.layout == 'product' %} {{ page.url | replace:'/index.html','/' | prepend: "/api" | append:'.json' | absolute_url | xml_escape }} {{last_modified_at}} {% endif %} {% endfor %}