From be19f93d420014335053c6df676a05f031de9a79 Mon Sep 17 00:00:00 2001 From: Machiko Yasuda Date: Mon, 11 Dec 2023 20:32:02 +0000 Subject: [PATCH] fix(homepage): initiatives - fix broken link --- src/_includes/initiatives.html | 180 +++++++++++++++++---------------- 1 file changed, 92 insertions(+), 88 deletions(-) diff --git a/src/_includes/initiatives.html b/src/_includes/initiatives.html index 4248b005..9e232dd0 100644 --- a/src/_includes/initiatives.html +++ b/src/_includes/initiatives.html @@ -1,5 +1,9 @@ - + + +
@@ -7,108 +11,108 @@

Explore our initiatives

-
-
+
{% for initiative in site.data.initiatives %} +
-
-
- - {{ initiative.image.alt }} - -
-

{{ initiative.headline }}

- {% for paragraph in initiative.paragraphs %} -

- {{ paragraph }} -

- {% endfor %} - + id="{{ initiative.id }}" + class="px-4 px-md-3 py-3 py-md-5 my-4 clipped" + style=" background-color: var({{ initiative.class }})" + > +
+ + {{ initiative.image.alt }} + +
+

{{ initiative.headline }}

+ {% for paragraph in initiative.paragraphs %} +

{{ paragraph }}

+ {% endfor %} +
-
-
-

Recent News

-
- {% assign all_press = site.press | reverse %} - {% for press in all_press %} - {% assign url = press.url %} - {% if press.external %} - {% assign url = press.external %} - {% endif %} - {% if press.tags contains initiative.tag %} - - {% endif %} - {% endfor %} -
- See all +
+
+
+

Recent News

+
+ {% assign all_press = site.press | reverse %} {% for press in all_press %} {% assign url = press.url %} {% if + press.external %} {% assign url = press.external %} {% endif %} {% if press.tags contains initiative.tag %} + + {% endif %} {% endfor %}
+ See all
-
-
-

Resources

-
- {% assign all_resources = site.resources | reverse %} - {% for resource in all_resources %} - {% assign url = resource.asset %} - {% unless url contains "https://" %} - {% assign url = "/assets/" | append: url %} - {% endunless %} - {% if resource.tags contains initiative.tag %} - - {% endif %} - {% endfor %} -
- See all +
+
+
+

Resources

+
+ {% assign all_resources = site.resources | reverse %} {% for resource in all_resources %} {% if resource.asset %} {% + assign url = resource.asset %} {% unless url contains "https://" %} {% assign url = "/assets/" | append: url %} {% + endunless %} {% else %} {% assign url = resource.url %} {% endif %} {% if resource.tags contains initiative.tag %} + + {% endif %} {% endfor %}
+ See all
+
{% endfor %}