2021-10-22 16:22:45 +02:00
|
|
|
{{ if and (.Params.canonicalURL) (.Params.ShowCanonicalLink ) -}}
|
|
|
|
{{ $url := urls.Parse .Params.canonicalURL }}
|
|
|
|
|
2022-03-27 15:14:06 +02: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 16:22:45 +02:00
|
|
|
<span>
|
2022-03-27 15:14:06 +02:00
|
|
|
{{- (site.Params.CanonicalLinkText | default .Params.CanonicalLinkText) | default "Originally published at" -}}
|
2022-09-01 03:57:32 +02:00
|
|
|
<a href="{{ trim .Params.canonicalURL " " }}" title="{{ trim .Params.canonicalURL " " }}" rel="noopener noreferrer">{{ $url.Host }}</a>
|
2021-10-22 16:22:45 +02:00
|
|
|
</span>
|
|
|
|
{{- end }}
|