diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-23 16:52:53 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-23 16:56:55 +0300 |
commit | c8bbc25228a7d199ca6868db7375f1661c3ef6e4 (patch) | |
tree | b6b3c84795e441c05cc2d2a7fbbbfc34a492b377 /_includes/shell.html | |
parent | index.html: reuse page.title (diff) | |
download | jekyll-theme-c8bbc25228a7d199ca6868db7375f1661c3ef6e4.tar.gz jekyll-theme-c8bbc25228a7d199ca6868db7375f1661c3ef6e4.zip |
_includes: move everything to jekyll-theme/
Diffstat (limited to '_includes/shell.html')
-rw-r--r-- | _includes/shell.html | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/_includes/shell.html b/_includes/shell.html deleted file mode 100644 index 9b7ed4d..0000000 --- a/_includes/shell.html +++ /dev/null @@ -1,24 +0,0 @@ -<div class="shell"> -{% assign cmd = include.cmd | newline_to_br | strip_newlines %} -{% assign br = '<br />' %} -{% assign br_len = br | size %} -{% assign prefix = cmd | slice: 0,br_len %} -{% if prefix == br %} - {% assign cmd = cmd | remove_first: br %} -{% endif %} -{% assign cmd = cmd | split: br %} -{% assign new_cmd = '' | split: '' %} -{% for line in cmd %} - {% capture new_line %}{{ line }} -{% endcapture %} - {% assign new_cmd = new_cmd | push: new_line %} -{% endfor %} -{% assign cmd = new_cmd %} -{% assign cmd = cmd | join: '' %} -<div> - <pre class="shell-mark">$</pre><pre class="shell-cmd">{{ cmd }}</pre> -</div> -{% if include.out %} - <pre class="shell-out">{{ include.out }}</pre> -{% endif %} -</div> |