From a44365903cbe66056ee6344f4a36a9908c091dee Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Thu, 11 Mar 2021 17:50:52 +0100 Subject: [PATCH] =?UTF-8?q?Webov=C3=A1=20str=C3=A1nka=20v=20profilu=20prac?= =?UTF-8?q?ovn=C3=ADka?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/katedra/pracovnici/lapes/index.md | 1 + content/katedra/pracovnici/leipert/index.md | 1 + sass/main.scss | 4 ++-- templates/macros.html | 5 +++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/content/katedra/pracovnici/lapes/index.md b/content/katedra/pracovnici/lapes/index.md index 4fb50bb..0a6f0da 100644 --- a/content/katedra/pracovnici/lapes/index.md +++ b/content/katedra/pracovnici/lapes/index.md @@ -7,5 +7,6 @@ group = "ucitele" email = "jakub.lapes@pedf.cuni.cz" phone = "+420 221 900 239" sis = "18014" +homepage = "https://kraken.pedf.cuni.cz/~lapej2ap/" +++ diff --git a/content/katedra/pracovnici/leipert/index.md b/content/katedra/pracovnici/leipert/index.md index 1ee28bd..2b072f2 100644 --- a/content/katedra/pracovnici/leipert/index.md +++ b/content/katedra/pracovnici/leipert/index.md @@ -7,5 +7,6 @@ group = "ucitele" email = "jiri.leipert@pedf.cuni.cz" phone = "+420 221 900 235" sis = "02772" +homepage = "https://www.leipert.cz" +++ diff --git a/sass/main.scss b/sass/main.scss index 2b337e9..1bbb1e3 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -228,7 +228,7 @@ main { a:hover { text-decoration: underline } } - .mail, .tel, .cal { + .mail, .tel, .cal, .homepage { display: flex; align-items: center; @@ -241,6 +241,7 @@ main { .mail::before { content: "\e90e" } .tel::before { content: "\e913" } .cal::before { content: "\e905" } + .homepage::before { content: "\e907" } } .people-profile .info { @@ -272,7 +273,6 @@ main { .people-list { - h1 { margin-bottom: 0 } h2 { margin: 3rem 0; diff --git a/templates/macros.html b/templates/macros.html index 65aad80..678fca2 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -162,6 +162,11 @@ {{ profile.extra.phone }} {% endif %} + {% if profile.extra.homepage %} +
+ {{ profile.extra.homepage | replace(from="https://", to="") | replace(from="http://", to="") }} +
+ {% endif %} {% if profile.extra.sis %}
Rozvrh