initial jekyll refactor

This commit is contained in:
2022-11-19 18:57:04 +00:00
parent e3c7e0e862
commit df9a165ff0
137 changed files with 2672 additions and 1771 deletions

6
_plugins/header.rb Normal file
View File

@ -0,0 +1,6 @@
# https://stackoverflow.com/a/53893197/
class Jekyll::MarkdownHeader < Jekyll::Converters::Markdown
def convert(content)
super.gsub(/<h(2) id="(.*?)">(.*)<\/h(\d)>/, '<h\1 id="\2">\3<a href="#\2" class="header-link">[<img src="/assets/images/link.svg" />]</a></h\1>')
end
end