Skip to content

Commit

Permalink
a little bit changed settings
Browse files Browse the repository at this point in the history
  • Loading branch information
undead404 committed May 12, 2017
1 parent 0c45221 commit 46bcd4a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ defaults:
path: "assets/img"
values:
image: true
description: "Personal site"
future: false
paginate: 6
paginate_path: 'page:num'
permalink: /:categories/:title/
theme: jekyll-theme-hacker
timezone: Ukraine/Kiev
timezone: Europe/Kiev
title: undead404
30 changes: 30 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: none
sitemap:
priority: 1.0
changefreq: weekly
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset 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" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% if post.lastmod == null %}
<lastmod>{{ post.date | date: "%Y-%m-%d" }}</lastmod>
{% else %}
<lastmod>{{ post.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% endif %}
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
{% endfor %}
{% for page in site.pages %}
{% if page.sitemap != null and page.sitemap != empty %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
<priority>{{ page.sitemap.priority }}</priority>
</url>
{% endif %}
{% endfor %}
</urlset>

0 comments on commit 46bcd4a

Please sign in to comment.