summaryrefslogtreecommitdiffstats
path: root/_plugins/proof.rb
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@mailbox.org>2023-09-12 07:36:33 +0200
committerJustin Gassner <justin.gassner@mailbox.org>2024-01-13 20:41:27 +0100
commit777f9d3fd8caf56e6bc6999a4b05379307d0733f (patch)
treedc42d2ae9b4a8e7ee467f59e25c9e122e63f2e04 /_plugins/proof.rb
downloadsite-777f9d3fd8caf56e6bc6999a4b05379307d0733f.tar.zst
Initial commit
Diffstat (limited to '_plugins/proof.rb')
-rw-r--r--_plugins/proof.rb12
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)