diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-12-15 10:45:58 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-12-15 10:45:58 +0100 |
commit | 5c086bc52fa3a226bcf706b1f420a5d98ea377dd (patch) | |
tree | da5b28238542247efbe36c49cbc6cfd4e49f3e36 /src/_plugins/admonition_md.rb | |
parent | 64e0495846f8b680288280920cba6bcb28e4092f (diff) |
Redo most of the blog in Hugo
Missing posts will have to be added later
Diffstat (limited to 'src/_plugins/admonition_md.rb')
-rw-r--r-- | src/_plugins/admonition_md.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/_plugins/admonition_md.rb b/src/_plugins/admonition_md.rb deleted file mode 100644 index d22cceb..0000000 --- a/src/_plugins/admonition_md.rb +++ /dev/null @@ -1,26 +0,0 @@ -module Jekyll - class AdmonitionMarkdownBlock < Liquid::Block - @type = "" - - def initialize(tag_name, text, tokens) - super - - @type = text - end - - require "redcarpet" - - def render(context) - content = super - - '<section class="admonition"> - <div class="admonition-title">' + @type + '</div> - <div class="admonition-content"> - ' + Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(content) + ' - </div> - </section>' - end - end -end - -Liquid::Template.register_tag('admonition_md', Jekyll::AdmonitionMarkdownBlock) |