diff options
author | tdro <tdro@noreply.example.com> | 2022-06-05 02:18:16 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-05 02:25:38 -0400 |
commit | b8c5bcbee5592d7fd1e5774da38d835297f8715f (patch) | |
tree | 2df93ce12cdd19bfd5af24beab123cdab650bec5 | |
parent | dba272fe340146af5c72501a05567243b86c752c (diff) | |
download | canory-b8c5bcbee5592d7fd1e5774da38d835297f8715f.tar.gz canory-b8c5bcbee5592d7fd1e5774da38d835297f8715f.tar.bz2 canory-b8c5bcbee5592d7fd1e5774da38d835297f8715f.zip |
themes/default/layouts/partials/meta-date-time: Remove target blanks
Avoid navigation branching. Embeds with permissions may use JavaScript to hop
outside.
5 files changed, 6 insertions, 12 deletions
diff --git a/themes/default/layouts/_default/home.rss-style.xsl b/themes/default/layouts/_default/home.rss-style.xsl index d078608..e85f866 100644 --- a/themes/default/layouts/_default/home.rss-style.xsl +++ b/themes/default/layouts/_default/home.rss-style.xsl @@ -22,9 +22,9 @@ <main> <nav> <icon-button> - <a id="top" href="#"> - {{ safeHTML (readFile "static/icons/feather/arrow-up.svg") }} - <small>Top</small> + <a id="back" href="/"> + {{ safeHTML (readFile "static/icons/feather/arrow-left.svg") }} + <small>Back</small> </a> </icon-button> @@ -111,7 +111,7 @@ <micro-summary> <micro-thumbnail> <figure> - <a target="_blank"><xsl:attribute name="href"><xsl:value-of select="/rss/channel/link"/></xsl:attribute> + <a><xsl:attribute name="href"><xsl:value-of select="/rss/channel/link"/></xsl:attribute> <picture> {{- $file := "/profile/picture.png" -}} {{- $image := imageConfig (print "content/" (partial "author-media-path.html" .) $file) -}} @@ -129,7 +129,7 @@ </micro-thumbnail> <micro-content> <h2> - <a target="_blank"> + <a> <xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute> <xsl:value-of select="title" /> </a> diff --git a/themes/default/layouts/partials/card-meta.html b/themes/default/layouts/partials/card-meta.html index b338412..19796db 100644 --- a/themes/default/layouts/partials/card-meta.html +++ b/themes/default/layouts/partials/card-meta.html @@ -8,7 +8,6 @@ {{- if .Params.feed -}} {{ safeHTML (readFile "static/icons/feather/rss.svg") }} <a data-hover - target="_blank" title="{{ partial "author-user.html" . }}@{{ (urls.Parse .Site.BaseURL).Host }}" href="{{ .Site.BaseURL }}/{{ partial "author-user.html" . }}"> via @{{ partial "author-user.html" . }} diff --git a/themes/default/layouts/partials/feeds-generate.html b/themes/default/layouts/partials/feeds-generate.html index 690b6d8..b2bb893 100644 --- a/themes/default/layouts/partials/feeds-generate.html +++ b/themes/default/layouts/partials/feeds-generate.html @@ -210,8 +210,6 @@ <web-ring-item> <header> <a - rel="noopener" - target="_blank" title="{{ .FeedLink }}" href="{{ .FeedLink }}"> {{ .FeedTitle }} @@ -231,8 +229,6 @@ </p> <a - rel="noopener" - target="_blank" title="{{ .FeedSourceDescription }}" href="{{ .FeedSourceLink }}"> {{ .FeedSourceTitle }} diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html index 60ae0e7..0d63096 100644 --- a/themes/default/layouts/partials/meta-date-time.html +++ b/themes/default/layouts/partials/meta-date-time.html @@ -1,7 +1,7 @@ {{- $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") -}} {{- with .Params.feed.self -}} -<a target="_blank" href="{{ $.Site.BaseURL }}/{{ . }}"> +<a href="{{ $.Site.BaseURL }}/{{ . }}"> {{ else }} <a href="{{ .Site.BaseURL }}/{{ $author.user }}/messages/{{ path.Base .Permalink }}#{{ partial "card-id.html" . }}"> {{ end }} diff --git a/themes/default/layouts/partials/meta-handle.html b/themes/default/layouts/partials/meta-handle.html index d07b051..2d5a9a7 100644 --- a/themes/default/layouts/partials/meta-handle.html +++ b/themes/default/layouts/partials/meta-handle.html @@ -1,6 +1,5 @@ {{- with .Params.feed.domain -}} <a - target="_blank" title="{{ . }}" href="http://{{ . }}"> @{{ . }} |