--- --- {% for coll in site.all_collections %} {% for page in site[coll] %} {% comment %} page ref is nil for generated pages, such as post.html.1.txt code snippets {% endcomment %} {% if page.ref != nil %} {{ site.url }}{{ page.url }} {% assign ref=page.ref %} {% if page.ref == 'root' %} {% assign ref='index' %} {% endif %} {% assign versions=site[coll] | where:"ref", ref %} {% for version in versions %} {% endfor %} {% if page.date != nil %} {{ page.updated_at | default: page.date | date_to_xmlschema }} {% endif %} monthly {% endif %} {% endfor %} {% endfor %}