Skip to content

Commit

Permalink
feat: Renamed /page to /wiki (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel S authored May 30, 2022
1 parent 19ccfed commit 6d39859
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ export function Footer() {
<FooterTextLink href="https://staging.animethemes.moe/transparency">
Transparency
</FooterTextLink>
<Link href="/page/donate" passHref>
<Link href="/wiki/donate" passHref>
<FooterTextLink target="_self">
Donate
</FooterTextLink>
</Link>
<Link href="/page/faq" passHref>
<Link href="/wiki/faq" passHref>
<FooterTextLink target="_self">
FAQ
</FooterTextLink>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ export default function HomePage({ featuredTheme }) {
<Icon icon={faArrowRight} color="text-primary"/>
</BigButton>
</Link>
<Link href="/page" passHref prefetch={false}>
<Link href="/wiki" passHref prefetch={false}>
<BigButton forwardedAs="a" style={{ "--height": "48px" }}>
<Text>Page Index</Text>
<Text>Wiki</Text>
<Icon icon={faArrowRight} color="text-primary"/>
</BigButton>
</Link>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/pages/page/index.js → src/pages/wiki/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import getSharedPageProps from "utils/getSharedPageProps";
export default function DocumentIndexPage({ pages }) {
return (
<>
<SEO title="Pages"/>
<Text variant="h1">Pages</Text>
<SEO title="Wiki"/>
<Text variant="h1">Wiki</Text>
{pages.map((page) => (
<Link key={page.slug} href={`/page/${page.slug}`} passHref prefetch={false}>
<Link key={page.slug} href={`/wiki/${page.slug}`} passHref prefetch={false}>
<Text as="a" link>{page.name}</Text>
</Link>
))}
Expand Down

0 comments on commit 6d39859

Please sign in to comment.