diff --git a/Makefile b/Makefile
index 9210b7d..11e9a7f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,15 @@
-all: compile upload superfeedr
+all: compile compress upload superfeedr
compile:
@echo "=== Generating static files"
@bundle exec jekyll build --lsi
@echo "Done."
+compress:
+ @echo "=== Compressing generated files"
+ @find ./_site -type f | xargs gzip -k -9
+ @echo "Done."
+
upload:
@echo "=== Syncing files"
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ webserver.kempkens.io:/var/www/blog
diff --git a/sitemap.xml b/sitemap.xml
index 3bd9783..c6178cb 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -8,11 +8,10 @@ layout: null
{{ site.time | date_to_xmlschema }}
- {% assign pages_list = site.pages %}
- {% for node in pages_list %}
- {% if node.title != null and node.url != '/404.html' %}
+ {% for page in site.pages %}
+ {% if page.title != null and page.url != '/404.html' %}
- {{ site.url }}{{ node.url }}
+ {{ site.url }}{{ page.url }}
{% endif %}
{% endfor %}