We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68262bd commit 16efa6bCopy full SHA for 16efa6b
eleventy.config.js
@@ -5,8 +5,8 @@ import { default as RegEscape } from "regexp.escape";
5
6
function getWebsiteDomain(url) {
7
return url.replace(
8
- /^https?:\/\/([^/]+)\/?.*/,
9
- (string, domain) => domain
+ /^https?:\/\/(www\.)?([^/]+)\/?.*/,
+ (string, www, domain) => domain
10
);
11
}
12
0 commit comments