summaryrefslogtreecommitdiff
path: root/themes/PaperMod/layouts/shortcodes/rtl.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/PaperMod/layouts/shortcodes/rtl.html')
-rw-r--r--themes/PaperMod/layouts/shortcodes/rtl.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/PaperMod/layouts/shortcodes/rtl.html b/themes/PaperMod/layouts/shortcodes/rtl.html
new file mode 100644
index 0000000..a69b8ce
--- /dev/null
+++ b/themes/PaperMod/layouts/shortcodes/rtl.html
@@ -0,0 +1,15 @@
+{{ $.Scratch.Set "md" false }}
+
+{{ if .IsNamedParams }}
+{{ $.Scratch.Set "md" (.Get "md") }}
+{{ else }}
+{{ $.Scratch.Set "md" (.Get 0) }}
+{{ end }}
+
+<div dir="rtl">
+ {{ if eq ($.Scratch.Get "md") false }}
+ {{ .Inner }}
+ {{ else }}
+ {{ .Inner | markdownify }}
+ {{ end }}
+</div>