Skip to content

Commit

Permalink
Tweak homepage news layout
Browse files Browse the repository at this point in the history
  • Loading branch information
GregKaleka committed Jan 13, 2025
1 parent 97f05cf commit 44856b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ <h3 class="pb-2 mb-4 text-lg md:text-2xl capitalize border-b border-gray-400 tex
{% for entry in entries %}
<div class="pt-0">
<h2 class="flex items-center pb-2 mb-3 text-lg md:text-2xl lg:text-2xl font-semibold mr-4 border-b border-gray-400 dark:border-slate">
<span class="mr-4 bg-white rounded-full dark:text-gray-300 w-[36px] dark:bg-slate">
{% avatar user=entry.author %}
<span class="text-sm ml-4 bg-white rounded-full dark:text-gray-300 w-[36px] dark:bg-slate">
{% if entry.tag == "link" %}
<i class="fas fa-link"></i>
{% elif entry.tag == "news" %}
Expand All @@ -224,8 +225,7 @@ <h2 class="flex items-center pb-2 mb-3 text-lg md:text-2xl lg:text-2xl font-semi
<i class="fas fa-video"></i>
{% endif %}
</span>
{% avatar user=entry.author %}
<a class="link-header ml-4" {% if entry.external_url %}target="_blank"{% endif %} href="{% if entry.external_url %}{{ entry.external_url }}{% else %}{{ entry.get_absolute_url }}{% endif %}">
<a class="link-header" {% if entry.external_url %}target="_blank"{% endif %} href="{% if entry.external_url %}{{ entry.external_url }}{% else %}{{ entry.get_absolute_url }}{% endif %}">
{{ entry.title }} {% if entry.external_url %}<i class="fa fa-external-link text-sm ml-1"></i>{% endif %}
</a>
</h2>
Expand Down

0 comments on commit 44856b2

Please sign in to comment.