From 897a130e29014ba687d0efe302b82abc8850d1bb Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 24 May 2015 10:22:01 +0200 Subject: [PATCH] Use a sitemap auto generator And fix the ATOM feeds for categories --- _config.yml | 7 +++++-- sitemap.xml | 53 ----------------------------------------------------- 2 files changed, 5 insertions(+), 55 deletions(-) delete mode 100644 sitemap.xml diff --git a/_config.yml b/_config.yml index 5df28be..d4164a5 100644 --- a/_config.yml +++ b/_config.yml @@ -219,7 +219,7 @@ category_archive: # ATOM feeds -feed_dir: categories +feed_dir: category # Disqus recent comments @@ -227,4 +227,7 @@ disqus_commments: api_key: 3P1ANNTDbeTRxVcFsOxguL4c4FKbaE23fXvp2n8SC2wZxqUJj4k9bdX6G9xWfQ6B api_secret: Ci6363xAjmfNacfUouUHOuiVcb93iKx7dXwvrQJoD4mnrHdiCqwJk55kXJe68ffn forum_name: dennogumi - limit: 5 \ No newline at end of file + limit: 5 + +gems: + - jekyll-sitemap \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml deleted file mode 100644 index a811a97..0000000 --- a/sitemap.xml +++ /dev/null @@ -1,53 +0,0 @@ ---- ---- - - - {% for post in site.posts %} - {% unless post.published == false %} - - {{ site.url }}{{ post.url }} - {% if post.sitemap.lastmod %} - {{ post.sitemap.lastmod | date: "%Y-%m-%d" }} - {% elsif post.date %} - {{ post.date | date_to_xmlschema }} - {% else %} - {{ site.time | date_to_xmlschema }} - {% endif %} - {% if post.sitemap.changefreq %} - {{ post.sitemap.changefreq }} - {% else %} - monthly - {% endif %} - {% if post.sitemap.priority %} - {{ post.sitemap.priority }} - {% else %} - 0.5 - {% endif %} - - {% endunless %} - {% endfor %} - {% for page in site.pages %} - {% unless page.sitemap.exclude == "yes" %} - - {{ site.url }}{{ page.url | remove: "index.html" }} - {% if page.sitemap.lastmod %} - {{ page.sitemap.lastmod | date: "%Y-%m-%d" }} - {% elsif page.date %} - {{ page.date | date_to_xmlschema }} - {% else %} - {{ site.time | date_to_xmlschema }} - {% endif %} - {% if page.sitemap.changefreq %} - {{ page.sitemap.changefreq }} - {% else %} - monthly - {% endif %} - {% if page.sitemap.priority %} - {{ page.sitemap.priority }} - {% else %} - 0.3 - {% endif %} - - {% endunless %} - {% endfor %} - \ No newline at end of file