aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-25 11:33:29 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-25 11:33:29 +0200
commit2438ceb325cd00673166941b6d1d2692ddca10d9 (patch)
tree407cf5b37698bffcb1b536ee670ec5b6043f2590 /index.html
parentrename internal variables (diff)
downloadegor-tensin.github.io-2438ceb325cd00673166941b6d1d2692ddca10d9.tar.gz
egor-tensin.github.io-2438ceb325cd00673166941b6d1d2692ddca10d9.zip
customize email & GitHub link placement
Diffstat (limited to 'index.html')
-rw-r--r--index.html28
1 files changed, 18 insertions, 10 deletions
diff --git a/index.html b/index.html
index e2d1bd3..81d57c9 100644
--- a/index.html
+++ b/index.html
@@ -2,6 +2,8 @@
title: Main page
layout: plain
main:
+ - email
+ - github
- url: /cv/cv.pdf
name: cv
- url: https://egort.name/
@@ -56,18 +58,24 @@ projects:
<div class="list-group-item disabled">
<h4 class="list-group-item-heading">links</h4>
</div>
- <a class="list-group-item" href="mailto:{{ site.settings.author.email }}">
- <h4 class="list-group-item-heading">{{ site.settings.author.email | downcase }}</h4>
- </a>
- <a class="list-group-item" href="{{ site.github.owner_url }}">
- <h4 class="list-group-item-heading">github</h4>
- </a>
{% if page.main %}
{% for link in page.main %}
- <a class="list-group-item" href="{{ link.url }}">
- <h4 class="list-group-item-heading">{{ link.name }}</h4>
- {% if link.description %}
- <p class="list-group-item-text">{{ link.description }}</p>
+ {% if link == 'email' %}
+ {% assign url = 'mailto:' | append: site.settings.author.email %}
+ {% assign name = site.settings.author.email | downcase %}
+ {% elsif link == 'github' %}
+ {% assign url = site.github.owner_url %}
+ {% assign name = 'github' %}
+ {% else %}
+ {% assign url = link.url %}
+ {% assign name = link.name %}
+ {% endif %}
+ {% assign desc = link.description %}
+
+ <a class="list-group-item" href="{{ url }}">
+ <h4 class="list-group-item-heading">{{ name }}</h4>
+ {% if desc %}
+ <p class="list-group-item-text">{{ desc }}</p>
{% endif %}
</a>
{% endfor %}