--- --- {% for post in site.posts %} {{ site.url }}{{ post.url }} {% assign versions=site.posts | where:"ref", post.ref %} {% for version in versions %} {% endfor %} {{ post.date | date_to_xmlschema }} weekly {% endfor %} {% for page in site.pages %} {{ site.base }}{{ page.url }} {% if page.ref != nil %} {% assign versions=site.pages | where:"ref", page.ref %} {% for version in versions %} {% endfor %} {% endif %} weekly {% endfor %}