Skip to content

Instantly share code, notes, and snippets.

View erjjones's full-sized avatar

Eric Jones erjjones

  • Indianapolis, Indiana
View GitHub Profile
@erjjones
erjjones / tag_index.html
Created March 22, 2012 02:07
Jekyll-Tag-Include
<h2>{{page.title}}</h2>
<table class="table table-striped">
<tbody>
{% for post in site.posts %}
{% for tag in post.tags %}
{% if tag == page.tag %}
<tr>
<td>
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p><strong>{{ post.date | date: "%B %e, %Y" }}</strong> . {{ post.category }} . <a href="http://erjjones.github.com{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.url }}"></a>
@erjjones
erjjones / tag_gen.rb
Created March 22, 2012 02:04
Jekyll-Tags
module Jekyll
class TagIndex < Page
def initialize(site, base, dir, tag)
@site = site
@base = base
@dir = dir
@name = 'index.html'
self.process(@name)
@erjjones
erjjones / readme.html
Created March 13, 2012 03:11
ReadMeMd
## Erjjones.Github.com
This is my GitHub user page made with Jekyll, and Twitter Bootstrap. Download it, fork it, follow it, give it away...
Have any feedback for me? [File an issue on this
project](https://github.com/erjjones/Feedback/issues/new) and I will get back to
you as soon as I can.
@erjjones
erjjones / atom.xml
Created March 13, 2012 02:49
SetupRSSfeed
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Eric Jones</title>
<link href="http://erjjones.github.com/atom.xml" rel="self"/>
<link href="http://erjjones.github.com/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
@erjjones
erjjones / DisqusComments.html
Created March 13, 2012 01:45
ResolvedDisqusCommentsCounter
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'ericjones'; // required: replace example with your forum shortname
var disqus_identifier = '{{ page.url }}';
var disqus_url = 'http://erjjones.github.com{{ page.url }}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
@erjjones
erjjones / JekyllSampleHeader.html
Created March 8, 2012 03:42
Jekyll Sample Header
---
layout: post
title: How I built my blog in one day
category: Coding
---
<!-- Put your html, css, and javascript here and below -->
@erjjones
erjjones / JekyllPagination.html
Created March 8, 2012 03:33
Jekyll Pagination
<div class="span9 column">
<p class="pull-right">{% if page.previous.url %} <a href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}"><i class="icon-chevron-left"></i></a> {% endif %} {% if page.next.url %} <a href="{{page.next.url}}" title="Next Post: {{page.next.title}}"><i class="icon-chevron-right"></i></a> {% endif %} </p>
</div>
@erjjones
erjjones / JekyllListAllPosts.html
Created March 8, 2012 03:22
Jekyll List All Posts
{% for post in site.posts %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p><small><strong>{{ post.date | date: "%B %e, %Y" }}</strong> . {{ post.category }} . <a href="http://erjjones.github.com{{ post.url }}#disqus_thread"></a></small></p>
{% endfor %}
@erjjones
erjjones / Disqus.html
Created March 8, 2012 02:02
Disqus Code Block
<!-- This is the actual comments section -->
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'erjjones'; // required: replace example with your forum shortname
var disqus_identifier = '{{ page.url }}';
var disqus_url = 'http://erjjones.github.com{{ page.url }}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
@erjjones
erjjones / JekyllRedditButton.html
Created March 7, 2012 22:44
Jekyll Reddit Button
<script type="text/javascript" src="http://www.reddit.com/buttonlite.js?i=2&styled=off&url=http://erjjones.github.com{{ page.url }}&newwindow=1"></script>