assets/sitemap/authors.xml in fenton-jekyll-boilerplate-0.0.11 vs assets/sitemap/authors.xml in fenton-jekyll-boilerplate-0.0.12

- old
+ new

@@ -5,12 +5,22 @@ <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9.xsd"> -{%- assign authors = site.authors | where: 'nav-sitemap','true' %} -{%- for author in authors %} <url> +{%- assign entries = '' | split:'@' %} +{%- for author in site.authors %} + {%- assign nav_sitemap = author.nav-sitemap | isnil: true %} + {%- if nav_sitemap and author.title %} + {%- capture data -%} + <url> <loc>{{ site.url }}{{ author.url }}</loc> <lastmod>{{ author.date }}</lastmod> </url> + {%- endcapture %} + {%- assign entries = entries | push: data %} + {%- endif %} {%- endfor %} +{%- for entry in entries -%} + {{ entry }} +{%- endfor -%} </urlset> \ No newline at end of file