2021-10-22 15:22:45 +01:00
|
|
|
{{ if and (.Params.canonicalURL) (.Params.ShowCanonicalLink ) -}}
|
|
|
|
{{ $url := urls.Parse .Params.canonicalURL }}
|
|
|
|
|
2022-03-27 14:14:06 +01:00
|
|
|
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated (or .Params.editPost.URL site.Params.editPost.URL) }} | {{- end -}}
|
2021-10-22 15:22:45 +01:00
|
|
|
<span>
|
2022-03-27 14:14:06 +01:00
|
|
|
{{- (site.Params.CanonicalLinkText | default .Params.CanonicalLinkText) | default "Originally published at" -}}
|
2021-10-22 15:22:45 +01:00
|
|
|
<a href="{{ trim .Params.canonicalURL " " }}" title="{{ trim .Params.canonicalURL " " }}" target="_blank" rel="noopener noreferrer">{{ $url.Host }}</a>
|
|
|
|
</span>
|
|
|
|
{{- end }}
|