mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2026-05-21 11:05:49 +00:00
87de3fb024
* feat(layouts): move all files in layouts/_default up to the layouts/ root. * feat(layouts): rename layouts/partials folder to layouts/_partials * feat(layouts): rename layouts/shortcodes folder to layouts/_shortcodes * feat(taxonomy): add new taxonomy layout template A template named taxonomy.html used to be a candidate for both Page kind term and taxonomy, now it’s only considered for taxonomy.
16 lines
286 B
HTML
16 lines
286 B
HTML
{{ $.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>
|