jlelse
/
Indieroad
Archived
1
Fork 0

Improve links (target blank for external and underline in content)

This commit is contained in:
Jan-Lukas Else 2020-01-23 08:47:28 +01:00
parent 97a6f2c722
commit 064e32329b
4 changed files with 6 additions and 6 deletions

View File

@ -518,9 +518,9 @@ select {
.content {
a {
font-weight: 700;
text-decoration: underline;
&:hover {
@include color(color, main-color);
text-decoration: underline;
}
}
ul {

View File

@ -17,7 +17,7 @@
{{ end }}
{{ .Content }}
{{ with .Params.externalUrl }}
<p><a class="u-bookmark-of" href="{{ . }}">{{ . }}</a></p>
<p><a class="u-bookmark-of" href="{{ . }}" target="_blank">{{ . }}</a></p>
{{ end }}
</div>
{{ partial "post_tags.html" . }}

View File

@ -2,7 +2,7 @@
<div class="list-header">
{{ if .Title }}
{{ if .Params.externalURL }}
<a class="u-bookmark-of" href="{{ .Params.externalURL }}">
<a class="u-bookmark-of" href="{{ .Params.externalURL }}" target="_blank">
<h2 class="list-title p-name">{{ .Title }}</h2>
</a>
{{ else }}

View File

@ -11,14 +11,14 @@
{{ with .Param "indieweb.reply" }}
{{ if .link }}
<div class="item">
{{ T "meta_reply_to" }}: <a class="u-in-reply-to" href="{{ .link }}">{{ .title | default .link }}</a>
{{ T "meta_reply_to" }}: <a class="u-in-reply-to" href="{{ .link }}" target="_blank">{{ .title | default .link }}</a>
</div>
{{ end }}
{{ end }}
{{ with .Param "indieweb.like" }}
{{ if .link }}
<div class="item">
{{ T "meta_like_of" }}: <a class="u-like-of" href="{{ .link }}">{{ .title | default .link }}</a>
{{ T "meta_like_of" }}: <a class="u-like-of" href="{{ .link }}" target="_blank">{{ .title | default .link }}</a>
</div>
{{ end }}
{{ end }}
@ -29,7 +29,7 @@
{{ end }}
{{ with .Param "syndicate" }}
<div class="item">
{{ T "also_on" }}:{{ $delimiter := "" }}{{ range $index, $link := . }}{{ $delimiter }} <a class="u-syndication" href="{{ $link }}">{{ (urls.Parse $link).Host }}</a>{{ $delimiter = "," }}{{ end }}
{{ T "also_on" }}:{{ $delimiter := "" }}{{ range $index, $link := . }}{{ $delimiter }} <a class="u-syndication" href="{{ $link }}" target="_blank">{{ (urls.Parse $link).Host }}</a>{{ $delimiter = "," }}{{ end }}
</div>
{{ end }}
{{ if .IsTranslated }}