jekyll-wns
A collection of filters, tags and hooks that I use on my pages.
Installation
- Add
gem "jekyll-wns", git: "https://github.com/0xReki/jekyll-wns.git, branch: "main"
to your site's Gemfile and runbundle
- Add the following to your site's
_config.yml
:
gems:
- jekyll-wns
Usage
Filters
Checksums
{{ site.content | sha384_64 }}
{{ site.content | sha384 }}
{{ site.content | sha256_64 }}
{{ site.content | sha256 }}
File Size
{{ site.content | file_size }}
Tags
Scene Breaks
{% scene_break leaves %}
<p style="text-align:center" data-mce-style="text-align:center">π π π π π π π π π π π π</p>
{% scene_break wave %}
<p style="text-align:center;letter-spacing:-.13em" data-mce-style="text-align:center;letter-spacing:-.13em">β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β</p>
{% scene_break wall %}
<p style="text-align:center;letter-spacing:-.2em" data-mce-style="text-align:center;letter-spacing:-.2em">βββββββββββββββββββββββββββββββββ</p>
{% scene_break %}
<p style="text-align:center" data-mce-style="text-align:center">πΏπΎπΏπΎπΏπΎπΏπΎ
Hooks
Automatic replacement of spaces to en quads after each sentence
Assuming your files are each sentence in their own line,
just add this to your _config.yml
:
wns:
quads: true
Automatic typographic handling of abbreviations
Just omit the space between the letters and use normal spaces, then add this to your _config.yml
:
wns:
abbrevations: true
Example
β¦ tools, e.g., hammer,β¦
With abbreviations: true
:
β¦ tools, e. \g., hammer,β¦