fix class

This commit is contained in:
2022-04-21 11:12:34 +00:00
parent d2e5a3fab6
commit c630ace949
5 changed files with 2 additions and 401443 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -316,11 +316,11 @@
<div class="flex justify-evenly flex-wrap gap-4">
{% for post in related_posts %}
{% if forloop.counter0 == 2 %}
<a href="{{ post.get_absolute_url }}" class="sm:flex-1 hidden lg:block 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.get_absolute_url }}" class="sm:flex-1 hidden lg: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 }}');">
{% include 'posts/partials/_posts_related.html' %}
</a>
{% elif forloop.last %}
<a href="{{ post.get_absolute_url }}" class="sm:flex-1 hidden 2xl:block 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.get_absolute_url }}" class="sm:flex-1 hidden 2xl: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 }}');">
{% include 'posts/partials/_posts_related.html' %}
</a>
{% else %}