This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <rss version="2.0"> | |
| <channel> | |
| <title>Blog Title</title> | |
| <link>http://sample.com</link> | |
| <pubDate>2012-05-30 02:23:25 -0700</pubDate> | |
| <item> | |
| <title>Oh Happy Day Part Two</title> | |
| <link>http://sample.com/oh-happy-day-part-two</link> | |
| <pubDate>2012-05-30</pubDate> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sample ruhoh plugin to extend mustache with "posts_limit_n" block helpers | |
| # See sample.html for sample usage. | |
| # Installation: place this ruby file in the _plugins directory in the root of your blog. | |
| class Ruhoh | |
| module Templaters | |
| module Helpers | |
| LimitRegex = /^(\w+)_limit_(\d+)/ | |
| def limit_to(method, limit) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # place mathjax.rb in _plugins directory of your blog | |
| require 'redcarpet' | |
| class HTMLwithAlbino < Redcarpet::Render::HTML | |
| def block_code(code, language) | |
| if language == 'mathjax' | |
| "<script type=\"math/tex; mode=display\"> | |
| #{code} | |
| </script>" | |
| else | |
| "<pre><code class=\"#{language}\">#{code}</code></pre>" |
NewerOlder