From d29b7355f7ba99d0d03ea432a28a09e690d7d4bf Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 17 Nov 2022 11:47:06 -0500 Subject: themes/default/layouts/_default/_markup/render-link: Remove target="_blank" Will cause issues later on - highlight external links with dotted underline --- assets/css/default.css | 5 +++++ themes/default/layouts/_default/_markup/render-link.html | 9 +++------ themes/default/layouts/shortcodes/quote.html | 8 +++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/assets/css/default.css b/assets/css/default.css index 5a19a98..04f5a6e 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -499,6 +499,11 @@ micro-metadata-handle a:hover span { text-decoration-thickness: 0.15rem !important; } +a[data-external] { + -webkit-text-decoration-style: dotted; + text-decoration-style: dotted; +} + column-left nav { position: sticky; position: -webkit-sticky; diff --git a/themes/default/layouts/_default/_markup/render-link.html b/themes/default/layouts/_default/_markup/render-link.html index 17a6f2c..8f51a57 100644 --- a/themes/default/layouts/_default/_markup/render-link.html +++ b/themes/default/layouts/_default/_markup/render-link.html @@ -7,15 +7,12 @@ {{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}} {{- with .Page.GetPage $url.Path }}{{ $link = printf "%s%s" .Permalink $fragment }}{{ end }}{{ end -}} {{- end -}} - - {{- .Text | safeHTML -}} - + {{ end }}>{{- .Text | safeHTML -}} {{- /* This comment removes trailing newlines and white spaces. */ -}} diff --git a/themes/default/layouts/shortcodes/quote.html b/themes/default/layouts/shortcodes/quote.html index b933286..e0048d9 100644 --- a/themes/default/layouts/shortcodes/quote.html +++ b/themes/default/layouts/shortcodes/quote.html @@ -3,11 +3,9 @@ {{- if $cite -}} - - {{- end -}} - {{ $text | markdownify }} - {{- if $cite -}} - + {{- print "[" $text "](" $cite ")" | markdownify -}} + {{- else -}} + {{- $text | markdownify -}} {{- end -}} {{- /* This comment removes trailing newlines and white spaces. */ -}} -- cgit v1.2.3