From 70af25d709fc8a64680c1995adca416bbad41caa Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 25 Apr 2022 12:11:18 +0200 Subject: refactoring --- index.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index b3855eb..f8d9589 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,9 @@ projects: {% assign desc = link.description %} + {% if name %}

{{ name }}

+ {% endif %} {% if desc %}

{{ desc }}

{% endif %} @@ -73,13 +75,16 @@ projects:

projects

- {% for project in page.projects %} -
- {% if project.name %} -

{{ project.name }}

+ {% for link in page.projects %} + {% assign url = link.url %} + {% assign name = link.name %} + {% assign desc = link.description %} +
+ {% if name %} +

{{ name }}

{% endif %} - {% if project.description %} -

{{ project.description }}

+ {% if desc %} +

{{ desc }}

{% endif %}
{% endfor %} -- cgit v1.2.3