Skip to content

Commit

Permalink
Fix layout or rtl in homepage and tables (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidrezakp committed Jan 2, 2021
1 parent a3bb0d3 commit 68d12a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion blog/static/css/edition-2/main.css
Expand Up @@ -454,6 +454,6 @@ a strong {
direction: rtl;
}

.left-to-right, .right-to-left pre {
.left-to-right, .right-to-left pre, .right-to-left table {
direction: ltr;
}
16 changes: 8 additions & 8 deletions blog/templates/macros.html
@@ -1,12 +1,12 @@
{% macro post_link(page) %}
<div>
{% set translations = page.translations | filter(attribute="lang", value=lang) -%}
{%- if translations -%}
{%- set post = get_page(path = translations.0.path) -%}
{%- else -%}
{%- set post = page -%}
{%- set not_translated = true -%}
{%- endif -%}
{% set translations = page.translations | filter(attribute="lang", value=lang) -%}
{%- if translations -%}
{%- set post = get_page(path = translations.0.path) -%}
{%- else -%}
{%- set post = page -%}
{%- set not_translated = true -%}
{%- endif -%}
<div{% if post.extra.rtl %} class="right-to-left"{% endif %}>
<h2 class="post-title"><a href="{{ post.path | safe }}">{{ post.title }}</a></h2>
<div class="post-summary">
{{ post.summary | safe }}
Expand Down

0 comments on commit 68d12a7

Please sign in to comment.