Add initial 11ty website structure

This commit is contained in:
Marc Froehlich
2026-07-06 01:04:06 +02:00
parent 62b6bbdcbc
commit 80214bf42d
1378 changed files with 204162 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
export default function format (url) {
let result = ''
result += url.protocol || ''
result += url.slashes ? '//' : ''
result += url.auth ? url.auth + '@' : ''
if (url.hostname && url.hostname.indexOf(':') !== -1) {
// ipv6 address
result += '[' + url.hostname + ']'
} else {
result += url.hostname || ''
}
result += url.port ? ':' + url.port : ''
result += url.pathname || ''
result += url.search || ''
result += url.hash || ''
return result
};