aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-07 22:49:02 -0300
committerEuAndreh <eu@euandre.org>2021-02-07 22:49:02 -0300
commita1e607b7f57020c56daaff99676d77ef17ad252a (patch)
tree1298877c8c743243205f2367631231f2a023a800
parentscreencast footnote: tweak (diff)
downloadeuandre.org-a1e607b7f57020c56daaff99676d77ef17ad252a.tar.gz
euandre.org-a1e607b7f57020c56daaff99676d77ef17ad252a.tar.xz
_plugin: Fix mismatched index link
Broken change introduced in 7058bc3cebd50debf29b641250e656259a092ef0.
-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 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="' +