Per-page RTL summary based on page languagedir

This commit is contained in:
Yoni 2021-08-21 14:25:00 +03:00
parent 01f9e43e59
commit 76d3d89510
3 changed files with 3 additions and 3 deletions

View File

@ -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 "📌" }}&nbsp;{{- end -}}{{ .Title }}</a> </h5>
<h6 class="subtitle caption">

View File

@ -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") }}

View File

@ -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">