From a1e607b7f57020c56daaff99676d77ef17ad252a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 7 Feb 2021 22:49:02 -0300 Subject: _plugin: Fix mismatched index link Broken change introduced in 7058bc3cebd50debf29b641250e656259a092ef0. --- _plugins/add-link-to-plaintext-code-block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_plugins') 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 + '