don't worry, it's probably fine

Redacted

01 Sep 2020

fun

Somebody ████ ████ ██ the world ██ █████ ████ ██. █ ████ ███ sharpest ████ ██ ███ ████. She was ███████ ████ ██ ████ ████ ███ ██████ ███ ███ █████ ██ the shape ██ ██ █ ██ ███ forehead.


I was ███████ ██████ ████ my blog when I thought it might be a fun idea to █████ a ██████ ██████ to redact content.

I’ve not really ████ ████ since my adventures writing a custom hiera lookup for Puppet at my old company (██████).

Anyway, here it is:

module Jekyll
  class RedactTag < Liquid::Tag

    def initialize(tag_name, text, tokens)
      super
      @text = text
    end

    def render(context)
      @text.strip.gsub(/\w/, '█')
    end
  end
end

Liquid::Template.register_tag('redact', Jekyll::RedactTag)

Then

{% redact foo bar %} becomes ███ ███

A bit silly, and a bit of fun.