From 2438ceb325cd00673166941b6d1d2692ddca10d9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 25 Apr 2022 11:33:29 +0200 Subject: customize email & GitHub link placement --- index.html | 28 ++++++++++++++++++---------- 1 file 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:

links

- -

{{ site.settings.author.email | downcase }}

-
- -

github

-
{% if page.main %} {% for link in page.main %} - -

{{ link.name }}

- {% if link.description %} -

{{ link.description }}

+ {% 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 %} + +
+

{{ name }}

+ {% if desc %} +

{{ desc }}

{% endif %}
{% endfor %} -- cgit v1.2.3