Make project image clickable - fixed

This commit is contained in:
2025-01-19 23:47:58 +00:00
parent 50501a3d37
commit ca3825660b

View File

@@ -15,7 +15,11 @@
<section id="projects">
{% for row in articles %}
<div class="project">
<a href="{{ row.link }}">
{% if row.get('link') is not none %}
<a href="{{ row.link }}">
{% else %}
<a href="/projects/{{ row.id }}">
{% endif %}
<img class="project-thumb"
srcset="
{% for i in range(200, 5100, 100) %}
@@ -30,14 +34,12 @@
</a>
<div class="project-text">
{% if row.get('link') is not none %}
<a href="{{ row.link }}">
<h3>{{ row.title }}</h3>
</a>
<a href="{{ row.link }}">
{% else %}
<a href="/projects/{{ row.id }}">
<a href="/projects/{{ row.id }}">
{% endif %}
<h3>{{ row.title }}</h3>
</a>
{% endif %}
<p class="article-description">{{ row.description }}</p>
<p class="article-date">{{ row.date | human_date }}</p>
{% for category in row.categories %}