diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-25 12:11:18 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-25 12:11:18 +0200 |
commit | 70af25d709fc8a64680c1995adca416bbad41caa (patch) | |
tree | ef63d4e86db6cd6bb8d9d5fbcb937c33a13fdbcd /index.html | |
parent | add more projects (diff) | |
download | egor-tensin.github.io-70af25d709fc8a64680c1995adca416bbad41caa.tar.gz egor-tensin.github.io-70af25d709fc8a64680c1995adca416bbad41caa.zip |
refactoring
Diffstat (limited to '')
-rw-r--r-- | index.html | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -55,7 +55,9 @@ projects: {% assign desc = link.description %} <a class="list-group-item" href="{{ url }}"> + {% if name %} <h4 class="list-group-item-heading">{{ name }}</h4> + {% endif %} {% if desc %} <p class="list-group-item-text">{{ desc }}</p> {% endif %} @@ -73,13 +75,16 @@ projects: <div class="list-group-item disabled"> <h4 class="list-group-item-heading">projects</h4> </div> - {% for project in page.projects %} - <a class="list-group-item" href="{{ project.url }}"> - {% if project.name %} - <h4 class="list-group-item-heading">{{ project.name }}</h4> + {% for link in page.projects %} + {% assign url = link.url %} + {% assign name = link.name %} + {% assign desc = link.description %} + <a class="list-group-item" href="{{ url }}"> + {% if name %} + <h4 class="list-group-item-heading">{{ name }}</h4> {% endif %} - {% if project.description %} - <p class="list-group-item-text">{{ project.description }}</p> + {% if desc %} + <p class="list-group-item-text">{{ desc }}</p> {% endif %} </a> {% endfor %} |