summaryrefslogtreecommitdiffstats
path: root/_plugins/proof.rb
blob: e1e3ab0bc13a4ff630e3e6d6c9bd1d86899e8b55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module Jekyll
  class ProofTagBlock < Liquid::Block
    def render(context)
      text = super
      "<span style=\"text-transform: uppercase; font-weight: bold; font-size: .75em;\">Proof</span> &nbsp; #{text} <span style=\"float:right;\">$\\square\\enspace$</span>"
    end
  end
end

Liquid::Template.register_tag('proof', Jekyll::ProofTagBlock)