feat: links from matter
This commit is contained in:
parent
512fcd0167
commit
51d2a1c7d9
4 changed files with 14 additions and 26 deletions
|
@ -119,6 +119,7 @@ layout: main
|
|||
</h2>
|
||||
<div class="grid grid-cols-3 gap-2 md:grid-cols-6 not-prose">
|
||||
{% for book in books %}
|
||||
{% if book.cover %}
|
||||
<a href="{{book.link}}" title="{{book.title | escape}}">
|
||||
<div class="relative block" style="max-width:226px">
|
||||
<div class="absolute left-0 top-0 h-full w-full rounded-lg border border-purple-600 hover:border-purple-500 dark:border-purple-400 dark:hover:border-purple-500"></div>
|
||||
|
@ -127,6 +128,7 @@ layout: main
|
|||
{% image bookImg, bookName, 'rounded-lg w-full h-full', '180px' %}
|
||||
</div>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Reference in a new issue