diff options
Diffstat (limited to '')
-rw-r--r-- | _plugins/add-link-to-plaintext-code-block.rb | 2 |
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 + |