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