Per-page RTL summary based on page languagedir
This commit is contained in:
parent
01f9e43e59
commit
76d3d89510
|
@ -1,4 +1,4 @@
|
|||
<article class="summary-card" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
||||
<article class="summary-card" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">
|
||||
<header>
|
||||
<h5 class="title h5"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}{{ ($.Site.Params.pinIcon | safeHTML) | default "📌" }} {{- end -}}{{ .Title }}</a> </h5>
|
||||
<h6 class="subtitle caption">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<article class="summary-classic" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
||||
<article class="summary-classic" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">
|
||||
<div class="summary-classic__flex-box" {{ if eq ($.Param "sidebarPosition") "left" }}data-position="left"{{ end }}>
|
||||
|
||||
{{ if and (or ($.Param "featured_image") ($.Param "summary_image")) (eq ($.Param "sidebarPosition") "right") }}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<article class="summary-compact" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
||||
<article class="summary-compact" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">
|
||||
<div class="summary-compact__flex-box">
|
||||
{{ $params := .Params }}
|
||||
<div class="summary-compact__meta">
|
||||
|
|
Loading…
Reference in New Issue