summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/_default/_markup
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-22 12:43:22 +0200
committerDanilo M. <danix@danix.xyz>2026-04-22 12:43:22 +0200
commit5b476f8905f411768e23cb01d577a60e5a5fd725 (patch)
tree0a08cc83d809dbea714f52826e822501ee7c0165 /themes/danix-xyz-hacker/layouts/_default/_markup
parent082e9246ffe453031894d32d3cee9d5d1bf2b67a (diff)
downloaddanixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.tar.gz
danixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.zip
chore: extract theme into git submodule (danix2-hugo-theme)
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/_default/_markup')
-rw-r--r--themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html23
-rw-r--r--themes/danix-xyz-hacker/layouts/_default/_markup/render-heading.html5
2 files changed, 0 insertions, 28 deletions
diff --git a/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html b/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html
deleted file mode 100644
index 6f3e357..0000000
--- a/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{{- $lang := .Type -}}
-{{- $hasLang := gt (len $lang) 0 -}}
-{{- $highlightLang := $lang -}}
-{{- if not $hasLang -}}{{- $highlightLang = "text" -}}{{- end -}}
-{{- $opts := dict "lineNos" true "lineNumbersInTable" true -}}
-
-<div class="code-block-wrapper not-prose">
- {{- if $hasLang -}}
- <div class="code-header" data-lang="{{ $lang }}">
- <span class="code-lang-label">{{ $lang }}</span>
- <div class="code-copy-wrapper">
- <span role="status" aria-live="polite" class="sr-only code-copy-status"></span>
- <button class="code-copy-btn" aria-label="Copy code" data-copy-target>
- <i data-feather="copy" class="icon-copy" aria-hidden="true"></i>
- <i data-feather="check" class="icon-check hidden" aria-hidden="true"></i>
- </button>
- </div>
- </div>
- {{- end -}}
- <div class="code-body">
-{{- highlight .Inner $highlightLang $opts -}}
- </div>
-</div>
diff --git a/themes/danix-xyz-hacker/layouts/_default/_markup/render-heading.html b/themes/danix-xyz-hacker/layouts/_default/_markup/render-heading.html
deleted file mode 100644
index d0d5e05..0000000
--- a/themes/danix-xyz-hacker/layouts/_default/_markup/render-heading.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{{- if eq .Level 1 -}}
-<h1 id="{{ .Anchor }}">{{ .Text | safeHTML }}</h1>
-{{- else -}}
-<h{{ .Level }} id="{{ .Anchor }}"><span aria-hidden="true" class="heading-prefix">//</span> {{ .Text | safeHTML }}</h{{ .Level }}>
-{{- end -}}