1
0
Fork 0

gzip files when compiling

This commit is contained in:
Daniel Kempkens 2015-01-10 19:40:00 +01:00
parent 0649bba96c
commit e5413bf01d
2 changed files with 9 additions and 5 deletions

View file

@ -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

View file

@ -8,11 +8,10 @@ layout: null
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
</url>
{% 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' %}
<url>
<loc>{{ site.url }}{{ node.url }}</loc>
<loc>{{ site.url }}{{ page.url }}</loc>
</url>
{% endif %}
{% endfor %}