Skip to content

Commit

Permalink
Replace add_nbsp filter with a Jekyll hook
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed May 4, 2024
1 parent 35d3065 commit aa6b8cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 99 deletions.
89 changes: 0 additions & 89 deletions _layouts/single.html

This file was deleted.

3 changes: 3 additions & 0 deletions _plugins/add-nbsp.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Jekyll::Hooks.register :pages, :post_convert do |page|
page.content = page.content.gsub(/(\b\d+) ([KkMGTP]+i?[Bb]\b|byte)/, '\1 \2')
end
10 changes: 0 additions & 10 deletions _plugins/nbsp-filter.rb

This file was deleted.

0 comments on commit aa6b8cb

Please sign in to comment.