From 316a8ca8146f295bfe79ce7b175369a7198a97e1 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Fri, 12 Mar 2021 14:46:43 +0100 Subject: [PATCH] =?UTF-8?q?Zv=C3=BDrazn=C4=9Bn=C3=AD=20odkaz=C5=AF=20a=20i?= =?UTF-8?q?kona=20k=20extern=C3=ADmu=20odkazu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ikona se přidává tak, že Zola generuje ke každému externím odkazům `rel="noreferrer"` a CSS selektorem se všem takovým odkazům přidá ikona, viz issue #9. Closes: #9 --- config.toml | 1 + sass/main.scss | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index 5dadbd5..d2a4a04 100644 --- a/config.toml +++ b/config.toml @@ -9,6 +9,7 @@ build_search_index = false [markdown] smart_punctuation = true +external_links_no_referrer = true [extra] diff --git a/sass/main.scss b/sass/main.scss index f305bd7..c0dc4e0 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -138,9 +138,20 @@ main { } p { margin: 1em 0 } p, ul { line-height: 1.5 } - a { font-weight: bold } + a { + font-weight: bold; + color: #5E81AC; + } a:hover { text-decoration: underline } + a[rel~="noreferrer"]::after { + content: "\e907"; + font-family: icomoon; + font-size: .8em; + font-weight: normal; + margin-left: .2em; + } + section { margin-bottom: 5rem; } @@ -153,7 +164,10 @@ main { align-items: stretch; justify-items: center; - a { font-weight: normal } + a { + font-weight: normal; + color: inherit; + } a:hover { text-decoration: none } article { @@ -224,7 +238,10 @@ main { } .info { - a { font-weight: normal } + a { + font-weight: normal; + color: inherit; + } a:hover { text-decoration: underline } } @@ -322,6 +339,7 @@ main { text-transform: uppercase; font-size: .9rem; font-weight: bold; + color: inherit; &:hover { text-decoration: none;