Something went wrong. Try again.
Some shell. slowshell.bushyice.com
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323{% extends "base.html" %}
{% block title %}{{ section.title }} · {{ config.title }}{% endblock title %}{% block description %}{{ section.description | default(value=config.description) }}{% endblock description %}{% block opengraph %}<meta property="og:title" content="{{ section.title }} · {{ config.title }}"><meta property="og:description" content="{{ section.description | default(value=config.description) }}">{% endblock opengraph %}
{% block content %}<div class="page-layout"> <article class="doc-page"> <div class="breadcrumbs"> {% for ancestor in section.ancestors %} {% set a_sec = get_section(path=ancestor) %} <a href="{{ a_sec.permalink }}">{{ a_sec.title }}</a> <span class="breadcrumb-sep">/</span> {% endfor %} <span class="breadcrumb-current">{{ section.title }}</span> </div>
<header class="page-header"> <h1 class="page-title">{{ section.title }}</h1> {% if section.description %} <p class="page-desc">{{ section.description }}</p> {% endif %} </header>
{% set body_html = section.content %}
{% set home_sec = get_section(path="_index.md", allow_missing=true) %} {% set home_url = get_url(path="") %} {% if home_sec and home_sec.toc %} {% for h in home_sec.toc %} {% set clean_title = h.title | replace(from="\\", to="\\\\") | replace(from="?", to="\\?") | replace(from="(", to="\\(") | replace(from=")", to="\\)") | replace(from="[", to="\\[") | replace(from="]", to="\\]") %} {% set pat_home_h1 = "(?i)\\[\\[Slowshell#(?:" ~ clean_title ~ "|" ~ h.id ~ ")\\|([^\\]]+)\\]\\]" %} {% set rep_home_h1 = "<a class=\"wikilink\" href=\"" ~ home_url ~ "#" ~ h.id ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_home_h1, rep=rep_home_h1) %}
{% set pat_home_h2 = "(?i)\\[\\[Slowshell#(?:" ~ clean_title ~ "|" ~ h.id ~ ")\\]\\]" %} {% set rep_home_h2 = "<a class=\"wikilink\" href=\"" ~ home_url ~ "#" ~ h.id ~ "\">Slowshell > " ~ h.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_home_h2, rep=rep_home_h2) %} {% endfor %} {% endif %} {% set pat_home_s1 = "(?i)\\[\\[Slowshell#([a-zA-Z0-9_\\-]+)\\|([^\\]]+)\\]\\]" %} {% set rep_home_s1 = "<a class=\"wikilink\" href=\"" ~ home_url ~ "#$1\">$2</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_home_s1, rep=rep_home_s1) %}
{% set pat_home_s2 = "(?i)\\[\\[Slowshell#([a-zA-Z0-9_\\-]+)\\]\\]" %} {% set rep_home_s2 = "<a class=\"wikilink\" href=\"" ~ home_url ~ "#$1\">Slowshell > $1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_home_s2, rep=rep_home_s2) %}
{% set pat_home1 = "(?i)\\[\\[Slowshell\\|([^\\]]+)\\]\\]" %} {% set rep_home1 = "<a class=\"wikilink\" href=\"" ~ home_url ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_home1, rep=rep_home1) %}
{% set pat_home2 = "(?i)\\[\\[Slowshell\\]\\]" %} {% set rep_home2 = "<a class=\"wikilink\" href=\"" ~ home_url ~ "\">Slowshell</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_home2, rep=rep_home2) %}
{% set sec_paths = config.extra.all_sections | default(value=["guides/_index.md", "references/_index.md", "modules/_index.md", "modules/panels/_index.md", "modules/panels/components/_index.md"]) %} {% for sp in sec_paths %} {% set sec = get_section(path=sp, allow_missing=true) %} {% if sec %} {% for p in sec.pages %} {% if p.toc %} {% for h in p.toc %} {% set clean_title = h.title | replace(from="\\", to="\\\\") | replace(from="?", to="\\?") | replace(from="(", to="\\(") | replace(from=")", to="\\)") | replace(from="[", to="\\[") | replace(from="]", to="\\]") %} {% set pat_h1 = "(?i)\\[\\[" ~ p.title ~ "#(?:" ~ clean_title ~ "|" ~ h.id ~ ")\\|([^\\]]+)\\]\\]" %} {% set rep_h1 = "<a class=\"wikilink\" href=\"" ~ h.permalink ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_h1, rep=rep_h1) %}
{% set pat_h2 = "(?i)\\[\\[" ~ p.title ~ "#(?:" ~ clean_title ~ "|" ~ h.id ~ ")\\]\\]" %} {% set rep_h2 = "<a class=\"wikilink\" href=\"" ~ h.permalink ~ "\">" ~ p.title ~ " > " ~ h.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_h2, rep=rep_h2) %}
{% if h.children %} {% for h2 in h.children %} {% set clean_title2 = h2.title | replace(from="\\", to="\\\\") | replace(from="?", to="\\?") | replace(from="(", to="\\(") | replace(from=")", to="\\)") | replace(from="[", to="\\[") | replace(from="]", to="\\]") %} {% set pat_h2_1 = "(?i)\\[\\[" ~ p.title ~ "#(?:" ~ clean_title2 ~ "|" ~ h2.id ~ ")\\|([^\\]]+)\\]\\]" %} {% set rep_h2_1 = "<a class=\"wikilink\" href=\"" ~ h2.permalink ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_h2_1, rep=rep_h2_1) %}
{% set pat_h2_2 = "(?i)\\[\\[" ~ p.title ~ "#(?:" ~ clean_title2 ~ "|" ~ h2.id ~ ")\\]\\]" %} {% set rep_h2_2 = "<a class=\"wikilink\" href=\"" ~ h2.permalink ~ "\">" ~ p.title ~ " > " ~ h2.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_h2_2, rep=rep_h2_2) %} {% endfor %} {% endif %} {% endfor %} {% endif %}
{% set pat_s1 = "(?i)\\[\\[" ~ p.title ~ "#([a-zA-Z0-9_\\-]+)\\|([^\\]]+)\\]\\]" %} {% set rep_s1 = "<a class=\"wikilink\" href=\"" ~ p.permalink ~ "#$1\">$2</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_s1, rep=rep_s1) %}
{% set pat_s2 = "(?i)\\[\\[" ~ p.title ~ "#([a-zA-Z0-9_\\-]+)\\]\\]" %} {% set rep_s2 = "<a class=\"wikilink\" href=\"" ~ p.permalink ~ "#$1\">" ~ p.title ~ " > $1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_s2, rep=rep_s2) %}
{% set pat1 = "(?i)\\[\\[" ~ p.title ~ "\\|([^\\]]+)\\]\\]" %} {% set rep1 = "<a class=\"wikilink\" href=\"" ~ p.permalink ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat1, rep=rep1) %}
{% set pat2 = "(?i)\\[\\[" ~ p.title ~ "\\]\\]" %} {% set rep2 = "<a class=\"wikilink\" href=\"" ~ p.permalink ~ "\">" ~ p.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat2, rep=rep2) %} {% endfor %}
{% if sec.title and sec.permalink %} {% if sec.toc %} {% for h in sec.toc %} {% set clean_title = h.title | replace(from="\\", to="\\\\") | replace(from="?", to="\\?") | replace(from="(", to="\\(") | replace(from=")", to="\\)") | replace(from="[", to="\\[") | replace(from="]", to="\\]") %} {% set pat_h1 = "(?i)\\[\\[" ~ sec.title ~ "#(?:" ~ clean_title ~ "|" ~ h.id ~ ")\\|([^\\]]+)\\]\\]" %} {% set rep_h1 = "<a class=\"wikilink\" href=\"" ~ h.permalink ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_h1, rep=rep_h1) %}
{% set pat_h2 = "(?i)\\[\\[" ~ sec.title ~ "#(?:" ~ clean_title ~ "|" ~ h.id ~ ")\\]\\]" %} {% set rep_h2 = "<a class=\"wikilink\" href=\"" ~ h.permalink ~ "\">" ~ sec.title ~ " > " ~ h.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_h2, rep=rep_h2) %}
{% if h.children %} {% for h2 in h.children %} {% set clean_title2 = h2.title | replace(from="\\", to="\\\\") | replace(from="?", to="\\?") | replace(from="(", to="\\(") | replace(from=")", to="\\)") | replace(from="[", to="\\[") | replace(from="]", to="\\]") %} {% set pat_h2_1 = "(?i)\\[\\[" ~ sec.title ~ "#(?:" ~ clean_title2 ~ "|" ~ h2.id ~ ")\\|([^\\]]+)\\]\\]" %} {% set rep_h2_1 = "<a class=\"wikilink\" href=\"" ~ h2.permalink ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_h2_1, rep=rep_h2_1) %}
{% set pat_h2_2 = "(?i)\\[\\[" ~ sec.title ~ "#(?:" ~ clean_title2 ~ "|" ~ h2.id ~ ")\\]\\]" %} {% set rep_h2_2 = "<a class=\"wikilink\" href=\"" ~ h2.permalink ~ "\">" ~ sec.title ~ " > " ~ h2.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_h2_2, rep=rep_h2_2) %} {% endfor %} {% endif %} {% endfor %} {% endif %}
{% set pat_s1 = "(?i)\\[\\[" ~ sec.title ~ "#([a-zA-Z0-9_\\-]+)\\|([^\\]]+)\\]\\]" %} {% set rep_s1 = "<a class=\"wikilink\" href=\"" ~ sec.permalink ~ "#$1\">$2</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_s1, rep=rep_s1) %}
{% set pat_s2 = "(?i)\\[\\[" ~ sec.title ~ "#([a-zA-Z0-9_\\-]+)\\]\\]" %} {% set rep_s2 = "<a class=\"wikilink\" href=\"" ~ sec.permalink ~ "#$1\">" ~ sec.title ~ " > $1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_s2, rep=rep_s2) %}
{% set pat1 = "(?i)\\[\\[" ~ sec.title ~ "\\|([^\\]]+)\\]\\]" %} {% set rep1 = "<a class=\"wikilink\" href=\"" ~ sec.permalink ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat1, rep=rep1) %}
{% set pat2 = "(?i)\\[\\[" ~ sec.title ~ "\\]\\]" %} {% set rep2 = "<a class=\"wikilink\" href=\"" ~ sec.permalink ~ "\">" ~ sec.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat2, rep=rep2) %} {% endif %} {% endif %} {% endfor %}
{% if section.toc %} {% for h in section.toc %} {% set clean_title = h.title | replace(from="\\", to="\\\\") | replace(from="?", to="\\?") | replace(from="(", to="\\(") | replace(from=")", to="\\)") | replace(from="[", to="\\[") | replace(from="]", to="\\]") %} {% set pat_sh1 = "(?i)\\[\\[#(?:" ~ clean_title ~ "|" ~ h.id ~ ")\\|([^\\]]+)\\]\\]" %} {% set rep_sh1 = "<a class=\"wikilink\" href=\"#" ~ h.id ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_sh1, rep=rep_sh1) %}
{% set pat_sh2 = "(?i)\\[\\[#(?:" ~ clean_title ~ "|" ~ h.id ~ ")\\]\\]" %} {% set rep_sh2 = "<a class=\"wikilink\" href=\"#" ~ h.id ~ "\">" ~ h.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_sh2, rep=rep_sh2) %}
{% if h.children %} {% for h2 in h.children %} {% set clean_title2 = h2.title | replace(from="\\", to="\\\\") | replace(from="?", to="\\?") | replace(from="(", to="\\(") | replace(from=")", to="\\)") | replace(from="[", to="\\[") | replace(from="]", to="\\]") %} {% set pat_sh2_1 = "(?i)\\[\\[#(?:" ~ clean_title2 ~ "|" ~ h2.id ~ ")\\|([^\\]]+)\\]\\]" %} {% set rep_sh2_1 = "<a class=\"wikilink\" href=\"#" ~ h2.id ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_sh2_1, rep=rep_sh2_1) %}
{% set pat_sh2_2 = "(?i)\\[\\[#(?:" ~ clean_title2 ~ "|" ~ h2.id ~ ")\\]\\]" %} {% set rep_sh2_2 = "<a class=\"wikilink\" href=\"#" ~ h2.id ~ "\">" ~ h2.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_sh2_2, rep=rep_sh2_2) %}
{% if h2.children %} {% for h3 in h2.children %} {% set clean_title3 = h3.title | replace(from="\\", to="\\\\") | replace(from="?", to="\\?") | replace(from="(", to="\\(") | replace(from=")", to="\\)") | replace(from="[", to="\\[") | replace(from="]", to="\\]") %} {% set pat_sh3_1 = "(?i)\\[\\[#(?:" ~ clean_title3 ~ "|" ~ h3.id ~ ")\\|([^\\]]+)\\]\\]" %} {% set rep_sh3_1 = "<a class=\"wikilink\" href=\"#" ~ h3.id ~ "\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_sh3_1, rep=rep_sh3_1) %}
{% set pat_sh3_2 = "(?i)\\[\\[#(?:" ~ clean_title3 ~ "|" ~ h3.id ~ ")\\]\\]" %} {% set rep_sh3_2 = "<a class=\"wikilink\" href=\"#" ~ h3.id ~ "\">" ~ h3.title ~ "</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_sh3_2, rep=rep_sh3_2) %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %}
{% set pat_ssh1 = "(?i)\\[\\[#([a-zA-Z0-9_\\-]+)\\|([^\\]]+)\\]\\]" %} {% set rep_ssh1 = "<a class=\"wikilink\" href=\"#$1\">$2</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_ssh1, rep=rep_ssh1) %}
{% set pat_ssh2 = "(?i)\\[\\[#([a-zA-Z0-9_\\-]+)\\]\\]" %} {% set rep_ssh2 = "<a class=\"wikilink\" href=\"#$1\">$1</a>" %} {% set_global body_html = body_html | regex_replace(pattern=pat_ssh2, rep=rep_ssh2) %}
{% if body_html %} <div class="markdown-body"> {{ body_html | safe }} </div> {% endif %}
{% if section.subsections or section.pages %} <div class="section-pages-list"> {% if section.subsections %} {% for sub_path in section.subsections %} {% set sub_sec = get_section(path=sub_path) %} <a href="{{ sub_sec.permalink }}" class="doc-card"> <div class="doc-card-title">{{ sub_sec.title }}</div> {% if sub_sec.description %} <div class="doc-card-desc">{{ sub_sec.description }}</div> {% endif %} </a> {% endfor %} {% endif %} {% for p in section.pages %} <a href="{{ p.permalink }}" class="doc-card"> <div class="doc-card-title">{{ p.title }}</div> {% if p.description %} <div class="doc-card-desc">{{ p.description }}</div> {% endif %} </a> {% endfor %} </div> {% endif %}
{% set_global backlink_items = "" %} {% set_global backlink_count = 0 %} {% set target_lower = section.title | lower %} {% set tag1 = "[[" ~ target_lower ~ "]]" %} {% set tag2 = "[[" ~ target_lower ~ "|" %} {% set tag3 = "[[" ~ target_lower ~ "#" %}
{% if home_sec %} {% set home_lower = home_sec.content | lower %} {% if home_lower is containing(pat=tag1) or home_lower is containing(pat=tag2) or home_lower is containing(pat=tag3) or home_sec.content is containing(pat=section.permalink) %} {% set_global backlink_count = backlink_count + 1 %} {% set card = "<a href=\"" ~ home_sec.permalink ~ "\" class=\"backlink-card\"><span class=\"backlink-title\">" ~ home_sec.title ~ "</span>" %} {% if home_sec.description %} {% set card = card ~ "<span class=\"backlink-desc\">" ~ home_sec.description ~ "</span>" %} {% endif %} {% set card = card ~ "</a>" %} {% set_global backlink_items = backlink_items ~ card %} {% endif %} {% endif %}
{% for sp in sec_paths %} {% set sec = get_section(path=sp, allow_missing=true) %} {% if sec %} {% if sec.permalink != section.permalink and sec.content %} {% set sec_lower = sec.content | lower %} {% if sec_lower is containing(pat=tag1) or sec_lower is containing(pat=tag2) or sec_lower is containing(pat=tag3) or sec.content is containing(pat=section.permalink) %} {% set_global backlink_count = backlink_count + 1 %} {% set card = "<a href=\"" ~ sec.permalink ~ "\" class=\"backlink-card\"><span class=\"backlink-title\">" ~ sec.title ~ "</span>" %} {% if sec.description %} {% set card = card ~ "<span class=\"backlink-desc\">" ~ sec.description ~ "</span>" %} {% endif %} {% set card = card ~ "</a>" %} {% set_global backlink_items = backlink_items ~ card %} {% endif %} {% endif %}
{% for other in sec.pages %} {% if other.permalink != section.permalink %} {% set other_lower = other.content | lower %} {% if other_lower is containing(pat=tag1) or other_lower is containing(pat=tag2) or other_lower is containing(pat=tag3) or other.content is containing(pat=section.permalink) %} {% set_global backlink_count = backlink_count + 1 %} {% set card = "<a href=\"" ~ other.permalink ~ "\" class=\"backlink-card\"><span class=\"backlink-title\">" ~ other.title ~ "</span>" %} {% if other.description %} {% set card = card ~ "<span class=\"backlink-desc\">" ~ other.description ~ "</span>" %} {% endif %} {% set card = card ~ "</a>" %} {% set_global backlink_items = backlink_items ~ card %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %}
{% if backlink_count > 0 %} <div class="backlinks-box"> <div class="backlinks-header"> <span class="backlinks-title">Backlinks</span> <span class="backlinks-count">({{ backlink_count }})</span> </div> <div class="backlinks-grid"> {{ backlink_items | safe }} </div> </div> {% endif %} </article>
{% if section.toc and section.toc | length > 0 %} <aside class="toc-sidebar"> <div class="toc-sticky"> <div class="toc-title">On this page</div> <ul class="toc-list"> {% for h in section.toc %} <li class="toc-item"> <a href="{{ h.permalink }}" class="toc-link">{{ h.title }}</a> {% if h.children %} <ul class="toc-sublist"> {% for h2 in h.children %} <li class="toc-subitem"> <a href="{{ h2.permalink }}" class="toc-sublink">{{ h2.title }}</a> </li> {% endfor %} </ul> {% endif %} </li> {% endfor %} </ul> </div> </aside> {% endif %}</div>{% endblock content %}