diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2020-08-05 05:25:42 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2020-08-05 05:25:42 +0300 |
commit | 72bb0d7e7e3e623e2f751f3a9375ca6df4ed210f (patch) | |
tree | 20075ebc11c5a64db2f405f97a969f7a6963de95 /layouts | |
parent | b4d6db179a2a959ae1bf8c23b8ed7f624734084a (diff) |
do #42
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/cmd.html | 8 |
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> |