added a way past cool CLI thingy
This commit is contained in:
parent
c23f481bc4
commit
5a362e310d
3 changed files with 64 additions and 1 deletions
38
_plugins/extensions.rb
Normal file
38
_plugins/extensions.rb
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
require "liquid"
|
||||||
|
require "jekyll"
|
||||||
|
|
||||||
|
module Jekyll
|
||||||
|
module LynnesbianDotSpaceFilters
|
||||||
|
def ansi_colour(code)
|
||||||
|
"\u001b[38;5;#{code}m"
|
||||||
|
end
|
||||||
|
|
||||||
|
def ansi_bg(code)
|
||||||
|
"\u001b[48;5;#{code}m"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnsiResetTag < Liquid::Tag
|
||||||
|
def render(context)
|
||||||
|
"\u001b[0m"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnsiBoldTag < Liquid::Tag
|
||||||
|
def render(context)
|
||||||
|
"\u001b[1m"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnsiUnderlineTag < Liquid::Tag
|
||||||
|
def render(context)
|
||||||
|
"\u001b[4m"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Liquid::Template.register_filter(Jekyll::LynnesbianDotSpaceFilters)
|
||||||
|
Liquid::Template.register_tag('ansi_reset', Jekyll::AnsiResetTag)
|
||||||
|
Liquid::Template.register_tag('ansi_bold', Jekyll::AnsiBoldTag)
|
||||||
|
Liquid::Template.register_tag('ansi_underline', Jekyll::AnsiUnderlineTag)
|
25
cli.txt
Normal file
25
cli.txt
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
---
|
||||||
|
{%- assign cyan = 87 | ansi_colour -%}
|
||||||
|
{%- assign purple = 99 | ansi_colour -%}
|
||||||
|
{{ purple }}{{ 231 | ansi_bg }}{% ansi_bold %}▞▚▞▚▞▚▖ ▂▃▄▅▆▇█{{99 | ansi_bg }}{{ 231 | ansi_colour }} lynnesbian dot space {{ purple }}{{ 231 | ansi_bg }}█▇▆▅▄▃▂ ▗▞▚▞▚▞▚{% ansi_reset %}
|
||||||
|
{{ purple }} {% ansi_underline %} {{ cyan }} {% ansi_reset %}
|
||||||
|
{{ purple }} ╱ ╱ {{ cyan }} ╱{% ansi_reset %}
|
||||||
|
{{ purple }} ╱ ╱ {{ cyan }} ╱{% ansi_reset %}
|
||||||
|
{{ cyan }} ╱ ╱ ╱{% ansi_reset %}
|
||||||
|
{{ cyan }} ╱ {% ansi_underline %}╱ {% ansi_reset %}{{ cyan }}╱{% ansi_reset %}
|
||||||
|
{{ cyan }} {% ansi_underline %}╱ {% ansi_reset %}{{ cyan }}╱{% ansi_reset %}
|
||||||
|
{{ 81 | ansi_bg }} {{ 213 | ansi_bg }} {{ 231 | ansi_bg }} {{ 213 | ansi_bg }} {{ 81 | ansi_bg }} {% ansi_reset %}
|
||||||
|
╭──────────────────────────────────────┬───────────────────────────────────────╮
|
||||||
|
│ Name │ Lynne, aka Lynnesbian │
|
||||||
|
│ Born │ 1998-04-02 (April 2nd, 1998) │
|
||||||
|
│ Timezone │ Australia/Brisbane - AEST - UTC+1000 │
|
||||||
|
│ What I do │ Free and open source software │
|
||||||
|
│ Fediverse account │ @lynnesbian@fedi.lynnesbian.space │
|
||||||
|
│ Email │ @lynne@bune.city │
|
||||||
|
│ Blog │ https://bune.city │
|
||||||
|
│ Be gay │ Do crimes │
|
||||||
|
╰──────────────────────────────────────┴───────────────────────────────────────╯
|
||||||
|
{{ 81 | ansi_bg }} {{ 213 | ansi_bg }} {{ 231 | ansi_bg }} {{ 213 | ansi_bg }} {{ 81 | ansi_bg }} {% ansi_reset %}
|
||||||
|
|
||||||
|
{{ purple }}{{ 231 | ansi_bg }}{% ansi_bold %}░▒▓▒░▒▓▒░▒▓▒░▒▓▒░ Source code: https://l.bune.city/clisrc ░▒▓▒░▒▓▒░▒▓▒░▒▓▒░▓▒░{% ansi_reset %}
|
|
@ -51,7 +51,7 @@ less_important: true
|
||||||
</TD>
|
</TD>
|
||||||
<TD ID=" MAIN">
|
<TD ID=" MAIN">
|
||||||
<H2>Who?</H2>
|
<H2>Who?</H2>
|
||||||
My name is Lynne, a twenty-one year old woman living in Australia (the land down under!)
|
My name is Lynne, a twenty-two year old woman living in Australia (the land down under!)
|
||||||
<BR />
|
<BR />
|
||||||
<BR />
|
<BR />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue