Make project image clickable

This commit is contained in:
2025-01-19 23:43:20 +00:00
parent 613c906626
commit 50501a3d37

View File

@@ -15,17 +15,19 @@
<section id="projects"> <section id="projects">
{% for row in articles %} {% for row in articles %}
<div class="project"> <div class="project">
<img class="project-thumb" <a href="{{ row.link }}">
srcset=" <img class="project-thumb"
{% for i in range(200, 5100, 100) %} srcset="
/projects/image/{{ row.image }}?w={{i}} {{i}}w{{"," if not loop.last}} {% for i in range(200, 5100, 100) %}
{% endfor %} /projects/image/{{ row.image }}?w={{i}} {{i}}w{{"," if not loop.last}}
" {% endfor %}
sizes=" "
(max-width: 999px) 80vw, sizes="
(min-width: 1000px) 20vw (max-width: 999px) 80vw,
" (min-width: 1000px) 20vw
src="/projects/image/{{ row.image }}"> "
src="/projects/image/{{ row.image }}">
</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 }}">