From 5896dc2ad00bd5a78e94fdef5b43e07a193b939b Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 17 Mar 2020 01:50:07 +0100 Subject: [PATCH] Add ABOUT_PAGE variable for linking an about page too the profile in home --- static/css/style.css | 22 ++++++++++++++++++++++ templates/index.html | 3 +++ 2 files changed, 25 insertions(+) diff --git a/static/css/style.css b/static/css/style.css index 9c9096c..7b39fd8 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1555,6 +1555,28 @@ img { color: #f26a3d; } +.post-author-about-link a { + display: inline-block; + margin: 0 0.333em 0.666em 0; + padding: 0.575em 1em; + background: #fff; + border: 1px solid #f26a3d; + font-weight: 500; + line-height: 1.333em; + text-align: center; + text-decoration: none; + color: #f26a3d; + border-radius: 2em; + transition: all ease 0.3s; + box-sizing: border-box +} + +.post-author-about-link a:hover, +.post-author-about-link a:focus { + background: #f26a3d; + color: #fff +} + .post-comments { position: relative; diff --git a/templates/index.html b/templates/index.html index adb3741..3812e35 100644 --- a/templates/index.html +++ b/templates/index.html @@ -67,6 +67,9 @@ {% if BIO %}

{{BIO}}

{% endif %} + {% if ABOUT_PAGE %} + Mon CV + {% endif %} {% if LOCATION %} {{LOCATION}}