aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/mark.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/shortcodes/mark.html')
-rw-r--r--themes/default/layouts/shortcodes/mark.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/mark.html b/themes/default/layouts/shortcodes/mark.html
new file mode 100644
index 0000000..02af225
--- /dev/null
+++ b/themes/default/layouts/shortcodes/mark.html
@@ -0,0 +1,5 @@
+{{- $text := default "highligted text" (.Get "text" | default (.Get 0)) -}}
+{{- $title := default $text (.Get "title" | default (.Get 1)) -}}
+
+<mark title="{{ $title }}">{{ $text }}</mark>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}