Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2020-08-05 05:25:42 +0300
committerzwbetz-gh <zwbetz@gmail.com>2020-08-05 05:25:42 +0300
commit72bb0d7e7e3e623e2f751f3a9375ca6df4ed210f (patch)
tree20075ebc11c5a64db2f405f97a969f7a6963de95 /layouts
parentb4d6db179a2a959ae1bf8c23b8ed7f624734084a (diff)
do #42
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/cmd.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/shortcodes/cmd.html b/layouts/shortcodes/cmd.html
index cd21bc1..ccadc07 100644
--- a/layouts/shortcodes/cmd.html
+++ b/layouts/shortcodes/cmd.html
@@ -1 +1,7 @@
-<pre class="cmd"><code>{{ trim .Inner "\n" }}</code></pre>
+{{ $trimmed := (trim .Inner "\n") }}
+{{ $lines := split $trimmed "\n" }}
+<pre class="cmd">
+ {{ range $lines }}
+ <code>{{ . }}</code>
+ {{ end }}
+</pre>