summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/layouts')
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html1
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/em.html1
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/figure.html8
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html3
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/highlight.html3
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/img.html1
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/strike.html1
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/youtube.html1
8 files changed, 19 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html b/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html
new file mode 100644
index 0000000..6114678
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html
@@ -0,0 +1 @@
+<span class="text-2xl font-bold first-letter:text-3xl">{{ .Inner }}</span>
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/em.html b/themes/danix-xyz-hacker/layouts/shortcodes/em.html
new file mode 100644
index 0000000..a3a096c
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/em.html
@@ -0,0 +1 @@
+<em>{{ .Inner }}</em>
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/figure.html b/themes/danix-xyz-hacker/layouts/shortcodes/figure.html
new file mode 100644
index 0000000..27d6cb2
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/figure.html
@@ -0,0 +1,8 @@
+{{- $src := .Get "src" -}}
+{{- $alt := .Get "alt" -}}
+{{- $class := .Get "class" -}}
+<figure class="my-6 {{ $class }}">
+ {{- if $src -}}<img src="{{ $src }}" alt="{{ $alt }}" class="w-full" />{{ end -}}
+ {{- .Inner -}}
+ {{- if .Get "caption" -}}<figcaption class="text-sm text-text-dim mt-2">{{ .Get "caption" }}</figcaption>{{ end -}}
+</figure>
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html b/themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html
new file mode 100644
index 0000000..b9f8098
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html
@@ -0,0 +1,3 @@
+<div class="{{ .Get "divClass" }}">
+ <img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" class="image fit" />
+</div>
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/highlight.html b/themes/danix-xyz-hacker/layouts/shortcodes/highlight.html
new file mode 100644
index 0000000..1b6f12a
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/highlight.html
@@ -0,0 +1,3 @@
+{{- $lang := .Get 0 -}}
+{{- $opts := .Get 1 | default "" -}}
+{{ highlight .Inner $lang $opts }}
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/img.html b/themes/danix-xyz-hacker/layouts/shortcodes/img.html
new file mode 100644
index 0000000..2393928
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/img.html
@@ -0,0 +1 @@
+<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" class="w-full my-4" />
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/strike.html b/themes/danix-xyz-hacker/layouts/shortcodes/strike.html
new file mode 100644
index 0000000..275b7c1
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/strike.html
@@ -0,0 +1 @@
+<s>{{ .Inner }}</s>
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/youtube.html b/themes/danix-xyz-hacker/layouts/shortcodes/youtube.html
new file mode 100644
index 0000000..80cbb93
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/shortcodes/youtube.html
@@ -0,0 +1 @@
+<iframe class="w-full aspect-video my-6" src="https://www.youtube.com/embed/{{ .Get "id" }}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>