diff options
author | EuAndreh <eu@euandre.org> | 2024-11-17 20:15:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-11-17 20:18:21 -0300 |
commit | cfd0246b241cb6e58153e68f7e30ed56b9bf054b (patch) | |
tree | 206deba2cec12187e835c64b8a7172277be1a2cf /_plugins/add-anchor-to-header-from-header-id.rb | |
parent | rm tests/assert-frontmatter.sh (diff) | |
download | euandre.org-cfd0246b241cb6e58153e68f7e30ed56b9bf054b.tar.gz euandre.org-cfd0246b241cb6e58153e68f7e30ed56b9bf054b.tar.xz |
Remove jekyll infrastructure setup
Diffstat (limited to '')
-rw-r--r-- | _plugins/add-anchor-to-header-from-header-id.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/_plugins/add-anchor-to-header-from-header-id.rb b/_plugins/add-anchor-to-header-from-header-id.rb deleted file mode 100644 index 7138262..0000000 --- a/_plugins/add-anchor-to-header-from-header-id.rb +++ /dev/null @@ -1,11 +0,0 @@ -Jekyll::Hooks.register [:documents, :pages], :post_render do |doc| - if doc.output_ext == ".html" && doc.type != :slides - lang = doc.data["lang"] - alt = doc.site.site_payload["site"]["t"]["alt"]["link_icon"][lang] - 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="/static/link.svg" aria-hidden="true" alt="' + alt + '" /></a></div>' - ) - end -end |