Renamed Atlas to Outline

This commit is contained in:
Jori Lallo
2017-11-09 00:20:22 -08:00
parent 12d20611d6
commit f5c51a96f0
20 changed files with 47 additions and 47 deletions

View File

@@ -14,13 +14,13 @@ function getPathFromUrl(href: string) {
}
}
function isAtlasUrl(href: string) {
function isOutlineUrl(href: string) {
if (href[0] === '/') return true;
try {
const atlas = new URL(BASE_URL);
const outline = new URL(BASE_URL);
const parsed = new URL(href);
return parsed.hostname === atlas.hostname;
return parsed.hostname === outline.hostname;
} catch (err) {
return false;
}
@@ -30,7 +30,7 @@ export default function Link({ attributes, node, children, readOnly }: Props) {
const href = node.data.get('href');
const path = getPathFromUrl(href);
if (isAtlasUrl(href) && readOnly) {
if (isOutlineUrl(href) && readOnly) {
return <InternalLink {...attributes} to={path}>{children}</InternalLink>;
} else {
return <a {...attributes} href={href} target="_blank">{children}</a>;

View File

@@ -102,7 +102,7 @@ type Props = {
return (
<Container column auto>
<Helmet>
<title>Atlas</title>
<title>Outline</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"

View File

@@ -7,7 +7,7 @@ type Props = {
};
const PageTitle = ({ title }: Props) => (
<Helmet><title>{`${title} - Atlas`}</title></Helmet>
<Helmet><title>{`${title} - Outline`}</title></Helmet>
);
export default PageTitle;