aboutsummaryrefslogtreecommitdiff
path: root/_plugins/add-anchor-to-header-from-header-id.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-19 08:55:35 -0300
committerEuAndreh <eu@euandre.org>2020-12-19 08:55:35 -0300
commitfd572e8bb8d19d7c3a5c6b56c4ea44446e5efd80 (patch)
tree1963c32ee4257b6ad12511949899ad06fe278856 /_plugins/add-anchor-to-header-from-header-id.rb
parentdefault.nix: Don't start server on shellHook (diff)
downloadeuandre.org-fd572e8bb8d19d7c3a5c6b56c4ea44446e5efd80.tar.gz
euandre.org-fd572e8bb8d19d7c3a5c6b56c4ea44446e5efd80.tar.xz
Move images/ -> static/
Diffstat (limited to '_plugins/add-anchor-to-header-from-header-id.rb')
-rw-r--r--_plugins/add-anchor-to-header-from-header-id.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/_plugins/add-anchor-to-header-from-header-id.rb b/_plugins/add-anchor-to-header-from-header-id.rb
index 373389a..7138262 100644
--- a/_plugins/add-anchor-to-header-from-header-id.rb
+++ b/_plugins/add-anchor-to-header-from-header-id.rb
@@ -5,7 +5,7 @@ Jekyll::Hooks.register [:documents, :pages], :post_render do |doc|
doc.output =
doc.output.gsub(
/<h([1-6])(.*?)id="([\w-]+)"(.*?)>(.*?)<\/h[1-6]>/,
- '<div class="header-anchor"><h\1\2id="\3"\4>\5</h\1><a href="#\3"><img class="simple-icon" src="/images/link.svg" aria-hidden="true" alt="' + alt + '" /></a></div>'
+ '<div class="header-anchor"><h\1\2id="\3"\4>\5</h\1><a href="#\3"><img class="simple-icon" src="/static/link.svg" aria-hidden="true" alt="' + alt + '" /></a></div>'
)
end
end