mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2026-11-22 12:39:04 +00:00
- replaced deprecated .Scratch with local variables in toc, index.json, share_icons and ltr/rtl shortcodes - replaced newScratch with local variables in post_meta, schema_json and share_icons - keeps state local to each template; output unchanged
16 lines
227 B
HTML
16 lines
227 B
HTML
{{ $md := false }}
|
|
|
|
{{ if .IsNamedParams }}
|
|
{{ $md = .Get "md" }}
|
|
{{ else }}
|
|
{{ $md = .Get 0 }}
|
|
{{ end }}
|
|
|
|
<div dir="ltr">
|
|
{{ if eq $md false }}
|
|
{{ .Inner }}
|
|
{{ else }}
|
|
{{ .Inner | markdownify }}
|
|
{{ end }}
|
|
</div>
|