diff options
Diffstat (limited to '')
-rw-r--r-- | .themes/classic/source/_layouts/page.html | 2 | ||||
-rw-r--r-- | plugins/raw.rb | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html index 729b48ec..dbf209c4 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -7,7 +7,7 @@ layout: default {% if page.title %} <header> <h1 class="entry-title">{{ page.title | titlecase }}</h1> - {% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %} + {% if page.date %}<p class="meta">{% include post/date.html %}{{ time }}</p>{% endif %} </header> {% endif %} {{ content }} diff --git a/plugins/raw.rb b/plugins/raw.rb new file mode 100644 index 00000000..2deb5d10 --- /dev/null +++ b/plugins/raw.rb @@ -0,0 +1,24 @@ +# Author: phaer, https://github.com/phaer +# Source: https://gist.github.com/1020852 +# Description: Raw tag for jekyll. Keeps liquid from parsing text betweeen {% raw %} and {% endraw %} + +module Jekyll + class RawTag < Liquid::Block + def parse(tokens) + @nodelist ||= [] + @nodelist.clear + + while token = tokens.shift + if token =~ FullToken + if block_delimiter == $1 + end_tag + return + end + end + @nodelist << token if not token.empty? + end + end + end +end + +Liquid::Template.register_tag('raw', Jekyll::RawTag) |