Skip to content This repository Explore Gist Blog Help XiaoJu Zhang juvion 7 Watch Star 35 Fork 12davidensinger/davidensinger.github.io branch: source davidensinger.github.io/app/_layouts/post.html David Ensingerdavidensinger on Nov 11, 2014 Add previous, next JS navigation to site. 1 contributor 59 lines (58 sloc) 3.104 kb RawBlameHistory --- page-class: page-post --- {% include header.html %}
{% include icons/icon-clock.svg %} {{ page.date | date: "%B %d, %Y" }}
{{ content }}
{% capture suggested_tweet %}https://twitter.com/intent/tweet?text={% if page.suggested_tweet.text %}{{ page.suggested_tweet.text | cgi_escape }}{% else %}{{ page.title | cgi_escape }}{% endif %}&url={{ site.url }}{{ page.url }}&via={{ site.twitter }}{% if page.suggested_tweet.related %}&related={{ page.suggested_tweet.related | join: ',' | cgi_escape }}{% else %}&related={{ site.twitter }}{% endif %}{% if page.suggested_tweet.hashtags %}&hashtags={{ page.suggested_tweet.hashtags | join: ',' | cgi_escape }}{% endif %}{% if page.suggested_tweet.in_reply_to %}&in_reply_to={{ page.suggested_tweet.in_reply_to }}{% endif %}{% endcapture %} {% if page.suggested_tweet.text %}{{ page.suggested_tweet.text }}{% else %}{{ page.title }}{% endif %} {% if page.suggested_tweet.hashtags %} {% for hashtag in page.suggested_tweet.hashtags %} #{{ hashtag }} {% endfor %} {% endif %} {% include icons/icon-twitter.svg %}Click to Tweet (you may edit before posting.)
{% if page.tags != empty %}
{% if page.tags != empty %} {% include icons/icon-tag.svg %} {% for tag in page.tags %} {{ tag }}{% if forloop.last == false %}, {% endif %} {% endfor %} {% endif %}
{% endif %}
{% if page.previous %}
{% endif %} {% if page.next %}
{% endif %} {% include footer.html %} Status API Training Shop Blog About © 2015 GitHub, Inc. Terms Privacy Security Contact