Sha256: 6e1240ceb7d340accb65e529ca0018c5e93e49fb689d7c8efddd904e02cc0b27
Contents?: true
Size: 1015 Bytes
Versions: 9
Compression:
Stored size: 1015 Bytes
Contents
{% assign p_done = "404" %} {% for p in include.objects %} {% unless p.path contains ".xml" %} {% unless p.path contains ".scss" %} {% assign pname = p.path | split:"." | first %} {% assign p_done_arr = p_done | split:"," %} {% unless p_done_arr contains pname %} <url> <loc>{{ site.url }}{{ p.url | url_escape }}</loc> {% assign versions = include.objects | where_exp:"p","p.path contains pname" %} {% for v in versions %} <xhtml:link rel="alternate" hreflang="{{ v.lang }}" href="{{ site.url }}{{ v.url | url_escape }}" /> {% endfor %} {% assign p_done = p_done | append:"," | append:pname %} {% if p.layout == "post" %} <lastmod>{{ p.last_modified_at | default:p.date | date_to_xmlschema }}</lastmod> {% endif %} <changefreq>weekly</changefreq> {% if p.layout == "home" %} <priority>1</priority> {% endif %} </url> {% endunless %} {% endunless %} {% endunless %} {% endfor %}
Version data entries
9 entries across 9 versions & 2 rubygems