Commit 7b0bd72f authored by mh's avatar mh
Browse files

remove gone mottos

parent 06425243
......@@ -26,7 +26,6 @@ highlighter: pygments
exclude:
- Rakefile
- INSTALL
- mottos.yml
- build.sh
sass:
style: compressed
......
module Jekyll
class ImmerdaIsTag < Liquid::Tag
def render(context)
if File.exists?(mottos_file=File.join(File.dirname(__FILE__),'..','mottos.yml'))
require 'yaml'
mottos = YAML.load(File.read(mottos_file)).to_a
else
mottos = ['super!']
end
"#{mottos[rand(mottos.length)]}"
end
end
end
Liquid::Template.register_tag('immerda_is', Jekyll::ImmerdaIsTag)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment