diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-25 11:33:29 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-25 11:33:29 +0200 |
commit | 2438ceb325cd00673166941b6d1d2692ddca10d9 (patch) | |
tree | 407cf5b37698bffcb1b536ee670ec5b6043f2590 /index.html | |
parent | rename internal variables (diff) | |
download | egor-tensin.github.io-2438ceb325cd00673166941b6d1d2692ddca10d9.tar.gz egor-tensin.github.io-2438ceb325cd00673166941b6d1d2692ddca10d9.zip |
customize email & GitHub link placement
Diffstat (limited to '')
-rw-r--r-- | index.html | 28 |
1 files changed, 18 insertions, 10 deletions
@@ -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 %} |