diff options
Diffstat (limited to '_plugins')
-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 4c15d33..34b4ce7 100644 --- a/_plugins/add-link-to-plaintext-code-block.rb +++ b/_plugins/add-link-to-plaintext-code-block.rb @@ -1,6 +1,6 @@ Jekyll::Hooks.register :documents, :post_render do |doc| if doc.output_ext == ".html" && doc.type != :slides - code_block_counter = 1 + code_block_counter = 0 doc.output = doc.output.gsub(/(<\/code><\/pre><\/div><\/div>)/) do |match| res = match + '<div class="plaintext-link"><a href="' + |