simplify posts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<a href="{{ post.url }}" class="block">
|
||||
<a href="{{ post.get_absolute_url }}" class="block">
|
||||
<h3 class="text-gray-700 dark:text-gray-200">{{ post.title }}</h3>
|
||||
<p class="my-1 text-sm text-gray-600 dark:text-gray-300">
|
||||
<i class="fas fa-calendar-alt text-gray-500 dark:text-gray-400"></i>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<a href="{{ post.url }}" class="calendar-entry">
|
||||
<a href="{{ post.get_absolute_url }}" class="calendar-entry">
|
||||
<div class="calendar-dateBubble">
|
||||
<span class="dateBubble-day">{{ post.event_start|date:"d" }}</span>
|
||||
<span class="dateBubble-month">{{ post.event_start|date:"M" }}</span>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="my-2">
|
||||
<a href="{{ post.url }}">
|
||||
<a href="{{ post.get_absolute_url }}">
|
||||
<h3 class="">{{ post.title }}</h3>
|
||||
<p class="py-1 text-sm lg:text-base text-gray-600 dark:text-gray-300">
|
||||
<i class="fas fa-calendar-alt text-gray-500 dark:text-gray-400"></i>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<article class="article-cover-image" style="background-image: url('{{ post.imageurl }}');" onclick="openArticle('{{ post.url }}')">
|
||||
<article class="article-cover-image" style="background-image: url('{{ post.imageurl }}');" onclick="openArticle('{{ post.get_absolute_url }}')">
|
||||
<div class="article-cover-desc">
|
||||
<div class="article-cover-desc-items">
|
||||
<ul class="article-cover-tags">
|
||||
@@ -7,7 +7,7 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div>
|
||||
<a href="{{ post.url }}"><h3 class="text-gray-50">{{ post.title|safe }}</h3></a>
|
||||
<a href="{{ post.get_absolute_url }}"><h3 class="text-gray-50">{{ post.title|safe }}</h3></a>
|
||||
<div class="text-gray-200">
|
||||
<i class="fas fa-clock"></i>
|
||||
{{ post.date|date:"d. F Y" }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<article class="bg-white dark:bg-gray-800 rounded-md shadow transition-all duration-300 hover:shadow-md transform hover:scale-105">
|
||||
<a href="{{ post.url }}" class="block p-4">
|
||||
<a href="{{ post.get_absolute_url }}" class="block p-4">
|
||||
<div class="float-right px-2 py-0.5 rounded-full text-sm font-medium text-proprietary dark:text-blue-100 bg-blue-200 dark:bg-proprietary-dark">
|
||||
<i class="fa-solid fa-calendar-days mr-1"></i>
|
||||
<p style="margin-bottom: 0rem;">{{ post.date|date:"d. F Y" }}</p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<article class="article-cover-image" style="background-image: url('{{ post.imageurl }}');" onclick="openArticle('{{ post.url }}')">
|
||||
<article class="article-cover-image" style="background-image: url('{{ post.imageurl }}');" onclick="openArticle('{{ post.get_absolute_url }}')">
|
||||
<div class="article-cover-desc">
|
||||
<div class="article-cover-desc-items">
|
||||
<div class="absolute rounded-full px-2 py-1 bg-gray-800 text-gray-200 bg-opacity-90 capitalize"
|
||||
@@ -15,7 +15,7 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div>
|
||||
<a href="{{ post.url }}"><h3 class="text-gray-50">{{ post.title | safe }}</h3></a>
|
||||
<a href="{{ post.get_absolute_url }}"><h3 class="text-gray-50">{{ post.title|safe }}</h3></a>
|
||||
<div class="text-gray-200">
|
||||
<i class="fas fa-clock"></i>
|
||||
{{ post.date|date:"d. F Y" }}
|
||||
|
||||
Reference in New Issue
Block a user