Sha256: 218ac4e967183d7e8183b415b13f42885e70094de372a9b8a361e5dd3ed13091

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">

  {% assign collections = site.collections | where_exp:'collection','collection.output != false' %}

  {% for collection in collections %}
    {% assign docs = collection.docs | where_exp:'doc','doc.sitemap != false' %}
    {% for doc in docs %}
    <url>
      <loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>

      <news:news>
        <news:publication>
          <news:name>{{page.publisher}}</news:name>
          <news:language>en</news:language>
        </news:publication>
        <news:publication_date>{{ page.date | date_to_xmlschema }}</news:publication_date>
        <news:title>{{ page.title }}</news:title>
      </news:news>
    </url>
    {% endfor %}
  {% endfor %}

  {% assign pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"'
  %}
  {% for page in pages %}
    <url>
      <loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>

      <news:news>
        <news:publication>
          <news:name>{{page.publisher}}</news:name>
          <news:language>en</news:language>
        </news:publication>
        <news:publication_date>{{ page.date | date_to_xmlschema }}</news:publication_date>
        <news:title>{{ page.title }}</news:title>
      </news:news>
    </url>
  {% endfor %}
</urlset>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-news-sitemap-0.0.1 lib/sitemap_news.xml