Skip to content

Instantly share code, notes, and snippets.

@steveh
steveh / allthethings.sh
Last active August 29, 2015 13:56
All the things
#!/bin/sh
# Installation: save to /usr/local/bin/allthethings
# and chmod +x /usr/local/bin/allthethings
# Usage: allthethings update
# allthethings install
if [ -f "Gemfile" ]; then
echo "bundler"
<ul class="prev-next cf">
{% set params = {section: 'blog', order: 'postDate desc', limit: null} %}
{% set entry_prev = entry.getPrev(params) %}
{% set entry_next = entry.getNext(params) %}
{% if entry_prev %}<li class="prev"><a title="{{ entry_prev.title }}" href="{{entry_prev.url}}">Previous Post</a></li>{% endif %}
{% if entry_next %}<li class="next"><a title="{{ entry_next.title }}" href="{{entry_next.url}}">Next Post</a></li>{% endif %}
</ul>