Skip to content

Instantly share code, notes, and snippets.

View jekyll2.html
{% for category in page.categories %}
[<a class="post-meta" href="/{{category}}">{{category}}</a>]
{% endfor %}
View jekyll1.html
layout: default
<div class="home">
<h1 class="page-heading">Posts in the category [coding]</h1>
<ul class="post-list">
{% for post in site.categories.coding %}
neudabei / live_tweets_in_email.rb
Created May 31, 2015
Include live Tweets an email
View live_tweets_in_email.rb
# This code is based on the explanations by Kevin Thompson ( here
# See the email here:
require 'sinatra'
require 'twitter'
helpers do
def twitter
@twitter ||= do |config|
config.consumer_key = ENV.fetch("TWITTER_CONSUMER_KEY")