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-link-to-plaintext-code-block.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-link-to-plaintext-code-block.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/_plugins/add-link-to-plaintext-code-block.rb b/_plugins/add-link-to-plaintext-code-block.rb deleted file mode 100644 index 34b4ce7..0000000 --- a/_plugins/add-link-to-plaintext-code-block.rb +++ /dev/null @@ -1,13 +0,0 @@ -Jekyll::Hooks.register :documents, :post_render do |doc| - if doc.output_ext == ".html" && doc.type != :slides - code_block_counter = 0 - doc.output = doc.output.gsub(/(<\/code><\/pre><\/div><\/div>)/) do |match| - res = match + - '<div class="plaintext-link"><a href="' + - "#{doc.url}.#{code_block_counter}.txt" + - '">plaintext</a></div>' - code_block_counter += 1 - res - end - end -end |