diff --git a/layouts/partials/webmentions.html b/layouts/partials/webmentions.html index 27ded0e..a7885dc 100644 --- a/layouts/partials/webmentions.html +++ b/layouts/partials/webmentions.html @@ -28,7 +28,7 @@ {{- if $webmention.title -}} {{- $webmention.title | truncate 200 -}} {{- else -}} - {{- $webmention.source | truncate 35 -}} + {{- $webmention.source | strings.TrimPrefix "https://" | strings.TrimPrefix "www." | strings.TrimRight "/" | truncate 35 -}} {{- end -}} {{- if $webmention.author_name }}