Instantly share code, notes, and snippets.

View navigation.html
{% capture html %}
{% assign childCount = '' %}
{% comment %} Make sure there will be pages before making the ul tag. {% endcomment %}
{% assign entries = site.pages | sort: "path" %}
{% for entry in entries %}
{% capture slug %}{{ entry.url | split: "/" | last }}{% endcapture %}
{% capture current %}{{ entry.url | remove: slug | remove: "//" | append: "/" }}{% endcapture %}
{% if current == include.context %}
View gist:1994937
git diff --diff-filter=D --name-only -z | xargs -0 git rm
#from:http://stackoverflow.com/questions/6004453/how-to-remove-multiple-deleted-files-in-git-repository