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: compile:
@echo "=== Generating static files" @echo "=== Generating static files"
@bundle exec jekyll build --lsi @bundle exec jekyll build --lsi
@echo "Done." @echo "Done."
compress:
@echo "=== Compressing generated files"
@find ./_site -type f | xargs gzip -k -9
@echo "Done."
upload: upload:
@echo "=== Syncing files" @echo "=== Syncing files"
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ webserver.kempkens.io:/var/www/blog @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> <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
</url> </url>
{% assign pages_list = site.pages %} {% for page in site.pages %}
{% for node in pages_list %} {% if page.title != null and page.url != '/404.html' %}
{% if node.title != null and node.url != '/404.html' %}
<url> <url>
<loc>{{ site.url }}{{ node.url }}</loc> <loc>{{ site.url }}{{ page.url }}</loc>
</url> </url>
{% endif %} {% endif %}
{% endfor %} {% endfor %}