Make project image clickable - fixed
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user