Skip to content

Commit 74bba3c

Browse files
committed
add chips small tweaks
1 parent 0709fa5 commit 74bba3c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

_includes/chip.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% assign text = include.text %}
2+
{% assign href = include.href %}
3+
4+
{% if href %}
5+
<a href="{{ href | relative_url }}"
6+
class="font-mono text-[0.68rem] uppercase tracking-[0.12em] text-gray-700 hover:text-red-600">
7+
{{ text }}
8+
</a>
9+
{% else %}
10+
<span class="font-mono text-[0.68rem] uppercase tracking-[0.12em] text-gray-700">
11+
{{ text }}
12+
</span>
13+
{% endif %}

0 commit comments

Comments
 (0)