From 26bdc77b9a735b749a4a9364856695dbba2b4140 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Fri, 25 Aug 2023 08:11:24 +0100 Subject: [PATCH] Add a glyph to external links to visually mark them as external --- src/_includes/base.njk | 2 -- src/css/globals.css | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/_includes/base.njk b/src/_includes/base.njk index c217875..ab95473 100644 --- a/src/_includes/base.njk +++ b/src/_includes/base.njk @@ -2,9 +2,7 @@ {{ title | safe }} | {{ metadata.site.name }} - {% if includeFA %} - {% endif %} {% if includePrism %} {% endif %} diff --git a/src/css/globals.css b/src/css/globals.css index 312dd8f..ec8f4d3 100644 --- a/src/css/globals.css +++ b/src/css/globals.css @@ -79,4 +79,16 @@ aside { height: fit-content; max-width: 50ch; padding: var(--space-size-xs); +} + +a[target="_blank"]::after { + content: " \f08e"; + font-family: "font awesome 6 free"; + font-style: normal; + font-variant: normal; + text-rendering: auto; + font-weight: 900; + -webkit-font-smoothing: antialiased; + font-size: var(--text-size-xs); + vertical-align: super; } \ No newline at end of file