Permalink
Browse files

update site

  • Loading branch information...
1 parent 92dac0a commit 9966f66c98ecbbe6de5da027612b15d8a81777c9 @TingPing TingPing committed Dec 18, 2012
Showing with 94 additions and 0 deletions.
  1. +7 −0 _posts/2012-12-18-first-post.md
  2. +7 −0 _posts/2012-12-19-second-post.md
  3. +28 −0 atom.xml
  4. +8 −0 news.html
  5. +44 −0 sitemap.xml
@@ -0,0 +1,7 @@
+---
+layout: post
+title: Test Post
+tags: [announcement]
+---
+
+test
@@ -0,0 +1,7 @@
+---
+layout: post
+title: Post 2
+tags: [announcement]
+---
+
+test2
View
@@ -0,0 +1,28 @@
+---
+layout: nil
+---
+
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>{{ site.title }}</title>
+ <link href="http://{{ site.domain }}/atom.xml" rel="self"/>
+ <link href="http://{{ site.domain }}/"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>http://{{ site.domain }}/</id>
+ <author>
+ <name>HexChat</name>
+ <email>webmaster@hexchat.org</email>
+ </author>
+
+ {% for post in site.posts %}
+ <entry>
+ <title>{{ post.title }}</title>
+ <link href="http://{{ site.domain }}{{ post.url }}"/>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <id>http://{{ site.domain }}{{ post.id }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+
+</feed>
View
@@ -0,0 +1,8 @@
+---
+layout: default
+title: News
+---
+
+{% for post in site.posts %}
+<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
+{% endfor %}
View
@@ -0,0 +1,44 @@
+---
+layout: nil
+---
+
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+
+ <!-- Homepage -->
+ <url>
+ <loc>http://{{ site.domain }}/</loc>
+ <lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
+ <changefreq>daily</changefreq>
+ <priority>1.0</priority>
+ </url>
+
+ {% for page in site.posts %}
+ <url>
+ <loc>http://{{ site.domain }}{{ page.url }}</loc>
+ {% if page.last_updated %}
+ <lastmod>{{ page.last_updated | date: "%Y-%m-%d" }}</lastmod>
+ {% elsif page.date %}
+ <lastmod>{{ page.date | date: "%Y-%m-%d" }}</lastmod>
+ {% else %}
+ <lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
+ {% endif %}
+ </url>
+ {% endfor %}
+
+ {% for page in site.html_pages %}
+ <url>
+ <loc>http://{{ site.domain }}{{ page.url }}</loc>
+ {% if page.last_updated %}
+ <lastmod>{{ page.last_updated | date: "%Y-%m-%d" }}</lastmod>
+ {% elsif page.date %}
+ <lastmod>{{ page.date | date: "%Y-%m-%d" }}</lastmod>
+ {% else %}
+ <lastmod>{{ site.time | date: "%Y-%m-%d" }}</lastmod>
+ {% endif %}
+ {% if page.changefreq %}<changefreq>{{ page.changefreq }}</changefreq>{% endif %}
+ {% if page.priority %}<priority>{{ page.priority }}</priority>{% endif %}
+ </url>
+ {% endfor %}
+
+</urlset>

0 comments on commit 9966f66

Please sign in to comment.