aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/shell.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-21 22:59:50 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-21 22:59:50 +0300
commit004208d9b41b9dfa9b107e753cfd9303dbe00812 (patch)
tree87619072790bd63125e799d9d3b6805a9a3a9d4d /_includes/shell.html
parentadd an include for shell commands & output (diff)
downloadjekyll-theme-004208d9b41b9dfa9b107e753cfd9303dbe00812.tar.gz
jekyll-theme-004208d9b41b9dfa9b107e753cfd9303dbe00812.zip
shell: output is optional
Diffstat (limited to '')
-rw-r--r--_includes/shell.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/_includes/shell.html b/_includes/shell.html
index 40ed1c8..9b7ed4d 100644
--- a/_includes/shell.html
+++ b/_includes/shell.html
@@ -18,5 +18,7 @@
<div>
<pre class="shell-mark">$</pre><pre class="shell-cmd">{{ cmd }}</pre>
</div>
-<pre class="shell-out">{{ include.out }}</pre>
+{% if include.out %}
+ <pre class="shell-out">{{ include.out }}</pre>
+{% endif %}
</div>