aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 06:44:41 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 06:49:18 +0300
commitb6f327b8b53c1f5abc13a880350ca78f87039d1a (patch)
tree4a26239c7ca6f924ecfe9ddc1b931e71291fa40b
parentadd a link to egort.name (diff)
downloadegor-tensin.github.io-b6f327b8b53c1f5abc13a880350ca78f87039d1a.tar.gz
egor-tensin.github.io-b6f327b8b53c1f5abc13a880350ca78f87039d1a.zip
move all external links to _config.yml
-rw-r--r--_config.yml11
-rw-r--r--index.html10
2 files changed, 14 insertions, 7 deletions
diff --git a/_config.yml b/_config.yml
index a77bdc3..566607b 100644
--- a/_config.yml
+++ b/_config.yml
@@ -27,7 +27,16 @@ hide_navbar: true
personal_info:
name: Egor Tensin
email: Egor.Tensin@gmail.com
- cv_url: https://egor-tensin.github.io/cv/cv.pdf
+ links:
+ - url: mailto:Egor.Tensin@gmail.com
+ text: Egor.Tensin@gmail.com
+ glyph: envelope
+ - url: https://egor-tensin.github.io/cv/cv.pdf
+ text: Curriculum vitae
+ glyph: file
+ - url: https://egort.name/
+ text: Cute dog pictures
+ glyph: heart
gpg:
public_key_url: /gpg.txt
fingerprint: 0281 0B23 3E1A 7D41 8FB1 5245 0494 6FC7 502B 539A
diff --git a/index.html b/index.html
index 5304b3a..4cc704e 100644
--- a/index.html
+++ b/index.html
@@ -11,13 +11,11 @@ Feel free to make contributions or contact me.</p>
<div class="list-group wide-enough">
<a class="list-group-item" href="{{ site.github.owner_url }}"><span class="glyphicon glyphicon-home"></span>&nbsp;GitHub profile</a>
- {% if site.personal_info.email %}
- <a class="list-group-item" href="mailto:{{ site.personal_info.email }}"><span class="glyphicon glyphicon-envelope"></span>&nbsp;{{ site.personal_info.email }}</a>
- {% endif %}
- {% if site.personal_info.cv_url %}
- <a class="list-group-item" href="{{ site.personal_info.cv_url }}"><span class="glyphicon glyphicon-file"></span>&nbsp;Curriculum vitae</a>
+ {% if site.personal_info.links %}
+ {% for link in site.personal_info.links %}
+ <a class="list-group-item" href="{{ link.url }}"><span class="glyphicon glyphicon-{{ link.glyph }}"></span>&nbsp;{{ link.text }}</a>
+ {% endfor %}
{% endif %}
- <a class="list-group-item" href="https://egort.name/"><span class="glyphicon glyphicon-tent"></span>&nbsp;Pictures of my dog</a>
</div>
{% if site.personal_info.gpg %}