From d37970ccd647b89a790c0944611f3e3be1f05eaf Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 10 Oct 2020 19:29:58 -0300 Subject: Use Jekyll to output slides HTML files --- _plugins/add-link-to-plaintext-code-block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_plugins/add-link-to-plaintext-code-block.rb') 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 + -- cgit v1.2.3