simplify page with https://github.com/adityatelange/hugo-PaperMod.git
This commit is contained in:
parent
7979c40554
commit
c2189ef133
540 changed files with 6036 additions and 29285 deletions
15
themes/hugo-PaperMod/layouts/shortcodes/rtl.html
Normal file
15
themes/hugo-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>
|
Loading…
Add table
Add a link
Reference in a new issue