Improve links (target blank for external and underline in content)
This commit is contained in:
parent
97a6f2c722
commit
064e32329b
|
@ -518,9 +518,9 @@ select {
|
||||||
.content {
|
.content {
|
||||||
a {
|
a {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
text-decoration: underline;
|
||||||
&:hover {
|
&:hover {
|
||||||
@include color(color, main-color);
|
@include color(color, main-color);
|
||||||
text-decoration: underline;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ with .Params.externalUrl }}
|
{{ with .Params.externalUrl }}
|
||||||
<p><a class="u-bookmark-of" href="{{ . }}">{{ . }}</a></p>
|
<p><a class="u-bookmark-of" href="{{ . }}" target="_blank">{{ . }}</a></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "post_tags.html" . }}
|
{{ partial "post_tags.html" . }}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="list-header">
|
<div class="list-header">
|
||||||
{{ if .Title }}
|
{{ if .Title }}
|
||||||
{{ if .Params.externalURL }}
|
{{ 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>
|
<h2 class="list-title p-name">{{ .Title }}</h2>
|
||||||
</a>
|
</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
|
@ -11,14 +11,14 @@
|
||||||
{{ with .Param "indieweb.reply" }}
|
{{ with .Param "indieweb.reply" }}
|
||||||
{{ if .link }}
|
{{ if .link }}
|
||||||
<div class="item">
|
<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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Param "indieweb.like" }}
|
{{ with .Param "indieweb.like" }}
|
||||||
{{ if .link }}
|
{{ if .link }}
|
||||||
<div class="item">
|
<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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Param "syndicate" }}
|
{{ with .Param "syndicate" }}
|
||||||
<div class="item">
|
<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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .IsTranslated }}
|
{{ if .IsTranslated }}
|
||||||
|
|
Reference in New Issue