mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Fix layout or rtl in homepage and tables (#896)
This commit is contained in:
committed by
GitHub
parent
a3bb0d3469
commit
68d12a7839
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user