fix layout related posts

This commit is contained in:
2022-01-06 23:47:47 +00:00
parent 33f2d8596a
commit be2bc4dd68

View File

@@ -286,7 +286,7 @@
{% if related_posts %} {% if related_posts %}
<section class="mx-auto w-full px-4"> <section class="mx-auto w-full px-4">
<h2 class="my-4 sm:my-8 text-proprietary dark:text-proprietary-lighter text-xl text-center uppercase tracking-wider">Weiterlesen</h2> <h2 class="my-4 sm:my-8 text-proprietary dark:text-proprietary-lighter text-xl text-center uppercase tracking-wider">Weiterlesen</h2>
<div class="flex justify-evenly flex-wrap gap-4">
{% for post in related_posts %} {% for post in related_posts %}
<a href="{{ post.url }}" class="sm:flex-1 block rounded-md bg-white dark:bg-gray-500 shadow-md bg-no-repeat bg-center aspect-video transition-all ease-in-out duration-500 bg-scale-100 hover:bg-scale-120" style="background-image: url('{{ post.imageurl }}');"> <a href="{{ post.url }}" class="sm:flex-1 block rounded-md bg-white dark:bg-gray-500 shadow-md bg-no-repeat bg-center aspect-video transition-all ease-in-out duration-500 bg-scale-100 hover:bg-scale-120" style="background-image: url('{{ post.imageurl }}');">
<div class="w-full h-full bg-gradient-to-t from-black rounded-md flex flex-col justify-end p-2"> <div class="w-full h-full bg-gradient-to-t from-black rounded-md flex flex-col justify-end p-2">
@@ -303,6 +303,7 @@
</div> </div>
</a> </a>
{% endfor %} {% endfor %}
</div>
</section> </section>
{% endif %} {% endif %}
</main> </main>