diff options
author | Justin Gassner <justin.gassner@mailbox.org> | 2023-09-12 07:36:33 +0200 |
---|---|---|
committer | Justin Gassner <justin.gassner@mailbox.org> | 2024-01-13 20:41:27 +0100 |
commit | 777f9d3fd8caf56e6bc6999a4b05379307d0733f (patch) | |
tree | dc42d2ae9b4a8e7ee467f59e25c9e122e63f2e04 /_plugins/proof.rb | |
download | site-777f9d3fd8caf56e6bc6999a4b05379307d0733f.tar.zst |
Initial commit
Diffstat (limited to '_plugins/proof.rb')
-rw-r--r-- | _plugins/proof.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/_plugins/proof.rb b/_plugins/proof.rb new file mode 100644 index 0000000..ab824e5 --- /dev/null +++ b/_plugins/proof.rb @@ -0,0 +1,12 @@ +module Jekyll + class ProofTagBlock < Liquid::Block + + def render(context) + text = super + "<span style=\"text-transform: uppercase; font-weight: bold; font-size: .75em;\">Proof</span> #{text} <span style=\"float:right;\">$\\square\\enspace$</span>" + end + + end +end + +Liquid::Template.register_tag('proof', Jekyll::ProofTagBlock) |