diff options
Diffstat (limited to 'layouts/shortcodes/tabbed-codeblock.html')
-rw-r--r-- | layouts/shortcodes/tabbed-codeblock.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/shortcodes/tabbed-codeblock.html b/layouts/shortcodes/tabbed-codeblock.html index 8cacb7d..e59bf63 100644 --- a/layouts/shortcodes/tabbed-codeblock.html +++ b/layouts/shortcodes/tabbed-codeblock.html @@ -19,7 +19,7 @@ {{ end }} <figure class="codeblock codeblock--tabbed"> <figcaption> - {{ if and (($.Scratch.Get "tc-url") ($.Scratch.Get "tc-title")) }} + {{ if and ($.Scratch.Get "tc-url") ($.Scratch.Get "tc-title") }} <span><a href="{{ ($.Scratch.Get "tc-url") | safeURL }}">{{ $.Scratch.Get "tc-title" }}</a></span> {{ else if $.Scratch.Get "tc-title" }} <span>{{ $.Scratch.Get "tc-title" }}</span> @@ -29,11 +29,11 @@ <li class="tab {{ if eq $index 0 }}active{{ end }}">{{ . }}</li> {{ end }} </ul> - </figcaption> + </figcaption> <div class="tabs-content"> {{ range $index, $value := $.Scratch.Get "tc-content" }} {{ $trimmedContent := trim $value "\n" }} - <figure class="highlight language-{{ index ($.Scratch.Get "tc-languages") $index }}" style="display: {{ if eq $index 0 }}block{{ else }}none{{ end }};"> + <figure class="highlight language-{{ index ($.Scratch.Get "tc-languages") $index }} {{ index ($.Scratch.Get "tc-languages") $index }}" style="display: {{ if eq $index 0 }}block{{ else }}none{{ end }};"> <table> <tbody> <tr> @@ -41,7 +41,7 @@ <pre>{{ range $index,$value := (split $trimmedContent "\n") }}<span>{{ add $index 1 }}</span><br>{{ end }}</pre> </td> <td class="code"> - <pre class="code-highlight language-{{ index ($.Scratch.Get "tc-languages") $index }}"><code class="{{ index ($.Scratch.Get "tc-languages") $index }}">{{ $trimmedContent }}</code></pre> + <pre class="code-highlight language-{{ index ($.Scratch.Get "tc-languages") $index }} {{ index ($.Scratch.Get "tc-languages") $index }}"><code class="{{ index ($.Scratch.Get "tc-languages") $index }}">{{ $trimmedContent }}</code></pre> </td> </tr> </tbody> @@ -49,4 +49,4 @@ </figure> {{ end }} </div> -</figure>
\ No newline at end of file +</figure> |