aboutsummaryrefslogtreecommitdiff
path: root/_plugins/add-link-to-plaintext-code-block.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/add-link-to-plaintext-code-block.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 '')
-rw-r--r--_plugins/add-link-to-plaintext-code-block.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/_plugins/add-link-to-plaintext-code-block.rb b/_plugins/add-link-to-plaintext-code-block.rb
index 04fbdea..4c15d33 100644
--- a/_plugins/add-link-to-plaintext-code-block.rb
+++ b/_plugins/add-link-to-plaintext-code-block.rb
@@ -1,5 +1,5 @@
Jekyll::Hooks.register :documents, :post_render do |doc|
- if doc.output_ext == ".html"
+ if doc.output_ext == ".html" && doc.type != :slides
code_block_counter = 1
doc.output = doc.output.gsub(/(<\/code><\/pre><\/div><\/div>)/) do |match|
res = match +