Jekyll source code for my blog, http://ruten.ca.
© 2009-2013
These are required to separate blog posts and project posts.
Blog Posts:
layout: post
category: blog
Project Posts:
layout: project
category: project
Currently using pygments.
Use like this:
{% highlight languagename %}
... code here ...
{% endhighlight %}
See available languages/lexers here: http://pygments.org/docs/lexers/
A few from that list that I might find useful are:
ruby
- Some combinations:
js+ruby
,html+ruby
, more... coffeescript
css
html
js
obj-c
haml
sass
,scss
bash
- ... lots more ...
All Basic Syntax: http://daringfireball.net/projects/markdown/syntax
Footnote Example:
Some random text. [^footref]
[^footref]: My footnote text.
- Twitter Cards (Also see here)
- Open Graph Protocol (FB)
Use <!--adsense1-->
or <!--adsense2-->
in markdown content files.
adsense1
is a banner-shaped ad, and adsense2
is a box-shaped ad.
In your post template, you'll need to run the content through the adsense_replace
filter, like so:
{{ content | adsense_replace }}