{% for page in site.pages
%}{% assign url = page.url | slice: 1, 100
%}{% assign last_char = page.url | slice: -1
%}{% if url contains "/" and last_char != "/" %}{% assign subpage = true %}{% else %}{% assign subpage = false %}{% endif
%}{% unless subpage == true or url == "" or url == "feed.xml"
%}
* [{{ page.title }}]({{ page.url | relativeurl }}) {% endunless
%}{% endfor %}
Wednesday, June 14, 2017
Jekyll Pages List
Getting a list of pages in a Jekyll site is easy, but paring that down to just the top-level files and the index pages is tricky.
Subscribe to:
Posts (Atom)
Jekyll Pages List
Getting a list of pages in a Jekyll site is easy, but paring that down to just the top-level files and the index pages is tricky. {% for p...
-
Wireshark is a GUI tool, so it runs as your normal user, but it needs to be able to capture packets, which is normally a superuser thing. Th...
-
The problem: In Eclipse on my Windows machine at work, I get an error attempting to open Javascript files, and have to open them as plain te...
-
Installing an app you've developed on an actual Android device is documented pretty well , but I tripped over a missing step (c) for Lin...