Ghost
New
pippinmole
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
main
76
branches
Go to file
t
Code
ghost
apps
web
src
lib
og-url.ts
web: remove comments that restate the code
3488da2
5 days ago
16 lines · 284 B
1
export
function
ogUrl
(
{
2
username
,
3
repo
,
4
ref
,
5
path
,
6
kind
=
"
tree
"
7
}
:
{
8
username
:
string
9
repo
:
string
10
ref
:
string
11
path
:
string
12
kind
?
:
"
13
})
{
14
const
query
=
15
return
`
/
${
username
16
}
,
;
;
;
;
tree
"
|
"
blob
"
;
new
URLSearchParams
(
{
ref
,
path
,
kind
}
)
;
}
/
${
repo
}
/og?
${
query
}
`
;