wires

summary refs log tree commit diff
path: root/layouts/_markup
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_markup')
-rw-r--r--layouts/_markup/render-codeblock.html1
-rw-r--r--layouts/_markup/render-heading.html3
2 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_markup/render-codeblock.html b/layouts/_markup/render-codeblock.html
new file mode 100644
index 0000000..f3912ad
--- /dev/null
+++ b/layouts/_markup/render-codeblock.html
@@ -0,0 +1 @@
+<pre><code class="chroma language-{{ .Type }}" data-lang="{{ .Type }}">{{ (transform.HighlightCodeBlock .).Inner }}</code></pre>
diff --git a/layouts/_markup/render-heading.html b/layouts/_markup/render-heading.html
new file mode 100644
index 0000000..d49699e
--- /dev/null
+++ b/layouts/_markup/render-heading.html
@@ -0,0 +1,3 @@
+<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
+  <a href="#{{ .Anchor }}">{{ .Text }}</a>
+</h{{ .Level }}>