aboutsummaryrefslogtreecommitdiff
path: root/_plugins/noop-converter.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-10-10 19:29:58 -0300
committerEuAndreh <eu@euandre.org>2020-10-10 19:30:12 -0300
commitd37970ccd647b89a790c0944611f3e3be1f05eaf (patch)
tree3e19e8b77ddee7a3c3db057bcc75568e212efecb /_plugins/noop-converter.rb
parentFix home page entry listing (diff)
downloadeuandre.org-d37970ccd647b89a790c0944611f3e3be1f05eaf.tar.gz
euandre.org-d37970ccd647b89a790c0944611f3e3be1f05eaf.tar.xz
Use Jekyll to output slides HTML files
Diffstat (limited to '_plugins/noop-converter.rb')
-rw-r--r--_plugins/noop-converter.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/_plugins/noop-converter.rb b/_plugins/noop-converter.rb
new file mode 100644
index 0000000..118d103
--- /dev/null
+++ b/_plugins/noop-converter.rb
@@ -0,0 +1,18 @@
+module Jekyll
+ class NoOpConverter < Converter
+ safe true
+ priority :high
+
+ def matches(ext)
+ ext == '.slides'
+ end
+
+ def output_ext(ext)
+ ".html"
+ end
+
+ def convert(content)
+ content
+ end
+ end
+end