aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-25 12:11:18 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-25 12:11:18 +0200
commit70af25d709fc8a64680c1995adca416bbad41caa (patch)
treeef63d4e86db6cd6bb8d9d5fbcb937c33a13fdbcd /index.html
parentadd more projects (diff)
downloadegor-tensin.github.io-70af25d709fc8a64680c1995adca416bbad41caa.tar.gz
egor-tensin.github.io-70af25d709fc8a64680c1995adca416bbad41caa.zip
refactoring
Diffstat (limited to '')
-rw-r--r--index.html17
1 files 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 %}
<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 %}