aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 14:37:33 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 14:37:33 +0300
commit47fc02a8c71af4926148beb5d5cc0fc221aa5429 (patch)
treee2e5922b7fc16f3d25b02cd345ad534991d38629 /layouts/_default/_markup
parent017c7b792f3e679f61b004ec132a36f866b39e9b (diff)
Auto-commit 2024-12-15
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r--layouts/_default/_markup/render-codeblock-mermaid.html4
-rw-r--r--layouts/_default/_markup/render-image.html5
2 files changed, 9 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html
new file mode 100644
index 0000000..d32626f
--- /dev/null
+++ b/layouts/_default/_markup/render-codeblock-mermaid.html
@@ -0,0 +1,4 @@
+<pre class="mermaid">
+ {{- .Inner | htmlEscape | safeHTML }}
+</pre>
+{{ .Page.Store.Set "hasMermaid" true }} \ No newline at end of file
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 93e530d..b2ccc08 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,3 +1,5 @@
+<figure class="figure">
+
<img
class="d-block img-fluid mb-2 rounded border shadow"
max-width="800"
@@ -6,3 +8,6 @@
{{- with .Text }} alt="{{ . }}"{{ end -}}
{{- with .Title }} title="{{ . }}"{{ end -}}
>
+{{- with .Title }}<figcaption class="figure-caption">{{.}}</figcaption>{{end -}}
+
+</figure> \ No newline at end of file