From 3f866acd5040f78c92d86e69807865c2cb6249e9 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Thu, 25 May 2023 14:32:09 +1000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Open=20sharing=20links=20in=20new?= =?UTF-8?q?=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + layouts/partials/sharing-links.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ba783ec..f827cfb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - ⚠️ Some parameters in the root of the Languages config file have been nested under the `params` block - Search results now respect `showDate` value when displaying article metadata ([#511](https://github.com/jpanther/congo/pull/511)) - Adopted new Tailwind logical properties for RTL styling +- Article sharing links now open in a new tab/window - Updated Dutch translation ([#544](https://github.com/jpanther/congo/pull/544)) - Upgrade to Tailwind v3.3.1 ([#523](https://github.com/jpanther/congo/pull/523)) - Upgrade to KaTeX v0.16.7 ([#538](https://github.com/jpanther/congo/pull/538), [#549](https://github.com/jpanther/congo/pull/549)) diff --git a/layouts/partials/sharing-links.html b/layouts/partials/sharing-links.html index ca0162c6..59212d43 100644 --- a/layouts/partials/sharing-links.html +++ b/layouts/partials/sharing-links.html @@ -8,6 +8,8 @@ href="{{ printf .url $.Permalink $.Title }}" title="{{ i18n .title }}" aria-label="{{ i18n .title }}" + target="_blank" + rel="noopener noreferrer" >{{ partial "icon.html" .icon }} {{ end }}