From 5bf766993005afa6aba8a1ae5ad838a46bfac382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 10 Feb 2018 13:02:37 +0100 Subject: [PATCH] Trim "www." from shocase URLs in title --- themes/gohugoioTheme/layouts/showcase/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/gohugoioTheme/layouts/showcase/single.html b/themes/gohugoioTheme/layouts/showcase/single.html index 0ea5d7a55..382ce3486 100644 --- a/themes/gohugoioTheme/layouts/showcase/single.html +++ b/themes/gohugoioTheme/layouts/showcase/single.html @@ -55,7 +55,7 @@ Showcase: {{ .Title }}

{{.Title}}

{{ with .Params.siteURL }} - {{ . | replaceRE "^https?://([^/]+).*" "$1"}} {{ partial "svg/link-ext.svg" (dict "size" "10") }} + {{ . | replaceRE "^https?://(www\\.)?([^/]+).*" "$2"}} {{ partial "svg/link-ext.svg" (dict "size" "10") }} {{ end }} {{ with .Params.siteSource }} source {{ partial "svg/link-ext.svg" (dict "size" "10") }}