Files
nomad/website/lib/utils.ts
Alex Carpenter e0ca2f4fd4 [WIP] feat: homepage and use case pages redesign (#11873)
* feat: connect homepage and use case pages

* fix: internalLink usage

* fix: query name

* chore: add homepage patterns

* chore: remove offerings

* chore: add intro features

* chore: bump subnav

* chore: updating patterns

* chore: add use case to the subnav

* chore: cleanup unused import

* chore: remove subnav border
2022-05-03 09:06:00 -04:00

11 lines
265 B
TypeScript

export const isInternalLink = (link: string): boolean => {
if (
link.startsWith('/') ||
link.startsWith('#') ||
link.startsWith('https://nomadproject.io') ||
link.startsWith('https://www.nomadproject.io')
) {
return true
}
return false
}