Make project image clickable - fixed
This commit is contained in:
@@ -15,7 +15,11 @@
|
|||||||
<section id="projects">
|
<section id="projects">
|
||||||
{% for row in articles %}
|
{% for row in articles %}
|
||||||
<div class="project">
|
<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"
|
<img class="project-thumb"
|
||||||
srcset="
|
srcset="
|
||||||
{% for i in range(200, 5100, 100) %}
|
{% for i in range(200, 5100, 100) %}
|
||||||
@@ -30,14 +34,12 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="project-text">
|
<div class="project-text">
|
||||||
{% if row.get('link') is not none %}
|
{% if row.get('link') is not none %}
|
||||||
<a href="{{ row.link }}">
|
<a href="{{ row.link }}">
|
||||||
<h3>{{ row.title }}</h3>
|
|
||||||
</a>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/projects/{{ row.id }}">
|
<a href="/projects/{{ row.id }}">
|
||||||
|
{% endif %}
|
||||||
<h3>{{ row.title }}</h3>
|
<h3>{{ row.title }}</h3>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
|
||||||
<p class="article-description">{{ row.description }}</p>
|
<p class="article-description">{{ row.description }}</p>
|
||||||
<p class="article-date">{{ row.date | human_date }}</p>
|
<p class="article-date">{{ row.date | human_date }}</p>
|
||||||
{% for category in row.categories %}
|
{% for category in row.categories %}
|
||||||
|
Reference in New Issue
Block a user