Skip to content

Commit 60c65da

Browse files
committed
Add title and domain to the featured homepage
1 parent ee5336f commit 60c65da

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
{% include "components/example-thumbnail.njk" %}
2-
<h3><a href="{{ item.link }}" target="_BLANK" rel="noopener">{{ item.title }} →</a></h3>
3-
{% if item.date %}
4-
<time value="{{ item.date | formatDate('y-MM-dd') }}" class="text-gray-400 text-xs">{{ item.date | formatDate }} </time>
5-
{% endif %}
6-
<p class="mt-0 text-gray-600 text-xs">{{ item.link | domain}}</p>
72
<ul class="text-gray-400 text-sm mt-2">
83
{% for tool in item.tools | sort %}
94
<li>{{ tool }}</li>
105
{% endfor %}
11-
</ul>
12-
6+
</ul>
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
<a href="{{ item.link }}" target="_BLANK" rel="noopener" class="mb-4 border-solid border-2 rounded pt-2 bg-gray-600 block">
2-
<img src="{{ item.thumbnailurl }}" loading="lazy" alt="Screenshot of {{ item.title}}" class="border-t-2">
3-
</a>
4-
5-
1+
<a href="{{ item.link }}" target="_BLANK" rel="noopener" class="mb-4 border-solid border-2 rounded pt-2 bg-gray-600 block">
2+
<img src="{{ item.thumbnailurl }}" loading="lazy" alt="Screenshot of {{ item.title}}" class="border-t-2">
3+
</a>
4+
<h3><a href="{{ item.link }}" target="_BLANK" rel="noopener">{{ item.title }} →</a></h3>
5+
{% if item.date %}
6+
<time value="{{ item.date | formatDate('y-MM-dd') }}" class="text-gray-400 text-xs">{{ item.date | formatDate }} </time>
7+
{% endif %}
8+
<p class="mt-0 text-gray-600 text-xs">{{ item.link | domain}}</p>

0 commit comments

Comments
 (0)