Skip to content

Commit

Permalink
improved the look of the tag buttons in blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed May 4, 2024
1 parent 1775cc3 commit e158950
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/_includes/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ <h3 class="text-4xl lg:text-6xl font-bold blog-title">{{ title }}</h3>
<div class="my-4">
{% for tag in tags %}
{% if tag !== 'posts' %}
<a class="tag bg-base-300 hover:bg-primary rounded-xl py-1 px-3" href="/tags/{{ tag }}">
<a class="transition ease-in-out delay-50 tag bg-base-300 hover:bg-primary hover:text-primary-content rounded-xl py-1 px-3"
href="/tags/{{ tag }}">
#{{ tag }}
</a>
{% endif %}
Expand Down
20 changes: 12 additions & 8 deletions src/_includes/feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@
<ul class="list-none space-y-6">
{% for post in list %}
<li>
<a href="{{ post.url }}" class="w-full h-full block bg-base-300 shadow-md p-4 text-primary-content">
<a href="{{ post.url }}"
class="transition ease-in-out delay-150 w-full h-full block bg-base-300 hover:scale-110 hover:bg-base-200 shadow-md p-4 text-primary-content">
<div class="flex justify-between text-xl">
{{ post.data.title }}

{% for tag in post.data.tags %}
{% if tag !== 'posts' %}
<span class="tag bg-primary rounded-xl py-1 px-3 text-sm" href="/tags/{{ tag }}">
#{{ tag }}
</span>
{% endif %}
{% endfor %}
<div class="flex gap-x-3">
{% for tag in post.data.tags %}
{% if tag !== 'posts' %}
<span class="hidden lg:block tag bg-primary rounded-xl py-1 px-3 text-sm"
href="/tags/{{ tag }}">
#{{ tag }}
</span>
{% endif %}
{% endfor %}
</div>
</div>
<h6 class="text-sm text-base-content">{{ post.date | w3DateFilter }}</h6>
</a>
Expand Down

0 comments on commit e158950

Please sign in to comment.