mirror of
https://github.com/ivanch/blog.ivanch.me.git
synced 2026-02-14 18:28:27 +00:00
re-init
This commit is contained in:
15
themes/PaperMod/layouts/shortcodes/rtl.html
Normal file
15
themes/PaperMod/layouts/shortcodes/rtl.html
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user