Skip to content

Instantly share code, notes, and snippets.

@jashank
Created December 31, 2013 06:19
Show Gist options
  • Select an option

  • Save jashank/8193298 to your computer and use it in GitHub Desktop.

Select an option

Save jashank/8193298 to your computer and use it in GitHub Desktop.

Revisions

  1. jashank created this gist Dec 31, 2013.
    18 changes: 18 additions & 0 deletions sitemap.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    ---
    layout: nil
    ---
    <?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/sitemap.xsd">
    {% for page in site.pages %}
    <url>
    <loc>{{ site.location }}{{ page.url }}</loc>
    <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
    </url>
    {% endfor %}
    {% for post in site.posts %}
    <url>
    <loc>{{ site.location }}{{ page.url }}</loc>
    <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
    </url>
    {% endfor %}
    </urlset>