aboutsummaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-10-30 16:01:16 -0300
committerEuAndreh <eu@euandre.org>2020-10-30 16:01:54 -0300
commit465bf105bc04de807c7c61fac6b4f7df96a93c97 (patch)
tree31f7d74dc6151b48ce95e5ab181f7bcfbc906963 /_plugins
parentWrap header with link using a div rather than a span (diff)
downloadeuandre.org-465bf105bc04de807c7c61fac6b4f7df96a93c97.tar.gz
euandre.org-465bf105bc04de807c7c61fac6b4f7df96a93c97.tar.xz
Add alt to header link icon
Diffstat (limited to '')
-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 b90d22c..8846b24 100644
--- a/_plugins/add-anchor-to-header-from-header-id.rb
+++ b/_plugins/add-anchor-to-header-from-header-id.rb
@@ -3,7 +3,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" /></a></div>'
+ '<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="link icon for showing link to this header" /></a></div>'
)
end
end