Fix layout or rtl in homepage and tables (#896)

This commit is contained in:
Hamid R. K. Pishghadam
2021-01-02 19:51:24 +03:30
committed by GitHub
parent a3bb0d3469
commit 68d12a7839
2 changed files with 9 additions and 9 deletions

View File

@@ -454,6 +454,6 @@ a strong {
direction: rtl; direction: rtl;
} }
.left-to-right, .right-to-left pre { .left-to-right, .right-to-left pre, .right-to-left table {
direction: ltr; direction: ltr;
} }

View File

@@ -1,12 +1,12 @@
{% macro post_link(page) %} {% macro post_link(page) %}
<div> {% set translations = page.translations | filter(attribute="lang", value=lang) -%}
{% set translations = page.translations | filter(attribute="lang", value=lang) -%} {%- if translations -%}
{%- if translations -%} {%- set post = get_page(path = translations.0.path) -%}
{%- set post = get_page(path = translations.0.path) -%} {%- else -%}
{%- else -%} {%- set post = page -%}
{%- set post = page -%} {%- set not_translated = true -%}
{%- set not_translated = true -%} {%- endif -%}
{%- endif -%} <div{% if post.extra.rtl %} class="right-to-left"{% endif %}>
<h2 class="post-title"><a href="{{ post.path | safe }}">{{ post.title }}</a></h2> <h2 class="post-title"><a href="{{ post.path | safe }}">{{ post.title }}</a></h2>
<div class="post-summary"> <div class="post-summary">
{{ post.summary | safe }} {{ post.summary | safe }}