diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-08-21 23:17:45 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-08-21 23:17:45 +0200 |
| commit | 250e63ba82d165d4d336afdb38368866af88966c (patch) | |
| tree | ada20e2298120eefdf5adcb6f0c9e760aa9d958f /_plugins/hello.rb | |
| parent | a74c3972962dee71c6eb33a27f9392aa69b6b1f1 (diff) | |
save commit with all testsgh-pages-tests
Diffstat (limited to '_plugins/hello.rb')
| -rw-r--r-- | _plugins/hello.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/_plugins/hello.rb b/_plugins/hello.rb new file mode 100644 index 0000000..4c615bb --- /dev/null +++ b/_plugins/hello.rb @@ -0,0 +1,15 @@ +module Jekyll + class HelloWorld < Liquid::Tag + + def initialize(tag_name, text, tokens) + super + @text = text + end + + def render(context) + "Hello World, #{@text}!" + end + end +end + +Liquid::Template.register_tag('hello', Jekyll::HelloWorld)
\ No newline at end of file |