From 28407333ffceca9b99fae721c30e8ae146a863da Mon Sep 17 00:00:00 2001 From: Justin Gassner Date: Wed, 14 Feb 2024 07:24:38 +0100 Subject: Update --- _plugins/example.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 _plugins/example.rb (limited to '_plugins/example.rb') diff --git a/_plugins/example.rb b/_plugins/example.rb new file mode 100644 index 0000000..e149f23 --- /dev/null +++ b/_plugins/example.rb @@ -0,0 +1,12 @@ +module Jekyll + class ExampleTagBlock < Liquid::Block + + def render(context) + text = super + "Example   #{text}" + end + + end +end + +Liquid::Template.register_tag('example', Jekyll::ExampleTagBlock) -- cgit v1.2.3-70-g09d2