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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/_markup/render-codeblock.html')
-rw-r--r--layouts/_default/_markup/render-codeblock.html20
1 files changed, 0 insertions, 20 deletions
diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html
deleted file mode 100644
index 21c5100..0000000
--- a/layouts/_default/_markup/render-codeblock.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{{- $class := .Attributes.class | default "" -}}
-{{- $lang := .Attributes.lang | default .Type -}}
-<div class="codeblock">
- <header>
- <span class="codeblock-lang">{{ $lang }}</span>
- <button
- class="codeblock-copy"
- data-id="codeblock-id-{{ .Ordinal }}"
- data-copied-text="{{ T `article.codeblock.copied` }}"
- >
- {{ T `article.codeblock.copy` }}
- </button>
- </header>
- <code id="codeblock-id-{{ .Ordinal }}" style="display:none;">{{- .Inner -}}</code>
- {{- if transform.CanHighlight $lang -}}
- <div class="{{ $class }}">{{- highlight .Inner $lang -}}</div>
- {{- else -}}
- <pre><code class="{{ $class }}">{{- .Inner -}}</code></pre>
- {{- end -}}
-</div>