Skip to content
Snippets Groups Projects
Commit 6b89ce20 authored by jan.bednarik's avatar jan.bednarik
Browse files

Shared article info tweaks

parent e538d2be
Branches
No related tags found
2 merge requests!816Release,!814Shared article info tweaks
Pipeline #14290 passed
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
{{ page.title }} {{ page.title }}
</h1> </h1>
{% include "shared/article_shared_link.html" %}
<div class="flex flex-col md:flex-row md:items-center"> <div class="flex flex-col md:flex-row md:items-center">
<div class="inline-flex divide-x flex-grow"> <div class="inline-flex divide-x flex-grow">
<span class="pr-2">{{ page.date|date:"DATE_FORMAT" }}</span> <span class="pr-2">{{ page.date|date:"DATE_FORMAT" }}</span>
...@@ -75,6 +73,8 @@ ...@@ -75,6 +73,8 @@
</div> </div>
</div> </div>
</div> </div>
{% include "shared/article_shared_link.html" %}
</article> </article>
{% if related_articles|length %} {% if related_articles|length %}
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
<div class="grid-content leading-6"> <div class="grid-content leading-6">
<p class="font-condensed text-xl leading-7 mb-5"> <p class="font-condensed text-xl leading-7 mb-5">
{{ page.perex }} {{ page.perex }}
{% include "shared/article_shared_link.html" %}
</p> </p>
</div> </div>
{% if page.author_page.title or page.author %} {% if page.author_page.title or page.author %}
...@@ -39,6 +38,21 @@ ...@@ -39,6 +38,21 @@
{% for block in page.content %} {% for block in page.content %}
{% include_block block %} {% include_block block %}
{% endfor %} {% endfor %}
{% if page.shared_from %}
<div class="grid-container mb-5">
<div class="grid-content">
<div class="prose max-w-none 3xl:text-lg">
<div class="content-block">
<p>
<em>Tento článek byl sdílen z&nbsp;jiného webu. Originál si můžete přečíst <a href="{{ page.get_original_url }}">zde</a>.</em>
</p>
</div>
</div>
</div>
</div>
{% endif %}
</main> </main>
{% include 'main/includes/newsletter_section.html' %} {% include 'main/includes/newsletter_section.html' %}
......
{% if page.shared_from %} {% if page.shared_from %}
<div> <div class="alert alert--light content-block">
Tento článek byl sdílen z&nbsp;externího zdroje. Originál si můžete přečíst <a href="{{ page.get_original_url }}">zde</a>. <p>
</div> <em>Tento článek byl sdílen z&nbsp;jiného webu. Originál si můžete přečíst <a href="{{ page.get_original_url }}">zde</a>.</em>
</p>
</div>
{% endif %} {% endif %}
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
<h1 itemprop="headline" class="head-alt-md md:head-alt-lg mb-4">{{ page.title }}</h1> <h1 itemprop="headline" class="head-alt-md md:head-alt-lg mb-4">{{ page.title }}</h1>
{% include "shared/article_shared_link.html" %}
<div class="flex flex-col md:flex-row md:items-center"> <div class="flex flex-col md:flex-row md:items-center">
<div class="inline-flex divide-x flex-grow my-4"> <div class="inline-flex divide-x flex-grow my-4">
<span class="pr-2">{{ page.date|date:"SHORT_DATE_FORMAT" }}</span> <span class="pr-2">{{ page.date|date:"SHORT_DATE_FORMAT" }}</span>
...@@ -47,6 +45,8 @@ ...@@ -47,6 +45,8 @@
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
{% include "shared/article_shared_link.html" %}
</article> </article>
<section class="mt-16 md:mt-24"> <section class="mt-16 md:mt-24">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment