Moved validation to head.

This commit is contained in:
Ada Werefox 2023-11-29 21:42:27 +00:00
parent c6578c510b
commit ec736b3665
2 changed files with 13 additions and 3 deletions

View File

@ -33,13 +33,13 @@ export default function BasicPage({
return ( return (
<div className="min-h-screen bg-alice-werefox-grey-light dark:bg-alice-werefox-grey font-nerd"> <div className="min-h-screen bg-alice-werefox-grey-light dark:bg-alice-werefox-grey font-nerd">
<Head> <Head>
<link rel="me" href="https://bark.lgbt/@alicew" />
<link rel="me" href="https://dragon.style/@alice" />
<link rel="me" href="https://mspsocial.net/@alice" />
<title>{page_title}</title> <title>{page_title}</title>
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
</Head> </Head>
<div className="container space-y-4 mx-auto px-4 py-4"> <div className="container space-y-4 mx-auto px-4 py-4">
<a rel="me" href="https://bark.lgbt/@alicew" hidden>Mastodon</a>
<a rel="me" href="https://dragon.style/@alice" hidden>Mastodon</a>
<a rel="me" href="https://mspsocial.net/@alice" hidden>Mastodon</a>
<TCard card_title={card_title} /> <TCard card_title={card_title} />
{renderBackButton(page_button_title, url)} {renderBackButton(page_button_title, url)}
{children} {children}

View File

@ -1,4 +1,5 @@
import Head from "next/head"; import Head from "next/head";
import Link from "next/link";
import TCard from "../components/title-card"; import TCard from "../components/title-card";
import FCard from "../components/footer-card"; import FCard from "../components/footer-card";
@ -9,6 +10,9 @@ export default function HomePage({ theme, page_title, card_title, children }) {
<Head> <Head>
<title>{page_title}</title> <title>{page_title}</title>
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<link rel="me" href="https://bark.lgbt/@alicew" />
<link rel="me" href="https://dragon.style/@alice" />
<link rel="me" href="https://mspsocial.net/@alice" />
</Head> </Head>
<div className="container space-y-4 mx-auto px-4 py-4"> <div className="container space-y-4 mx-auto px-4 py-4">
<TCard theme="Ada" card_title={card_title} /> <TCard theme="Ada" card_title={card_title} />
@ -24,6 +28,9 @@ export default function HomePage({ theme, page_title, card_title, children }) {
<Head> <Head>
<title>{page_title}</title> <title>{page_title}</title>
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<link rel="me" href="https://bark.lgbt/@alicew" />
<link rel="me" href="https://dragon.style/@alice" />
<link rel="me" href="https://mspsocial.net/@alice" />
</Head> </Head>
<div className="container space-y-4 mx-auto px-4 py-4"> <div className="container space-y-4 mx-auto px-4 py-4">
<TCard theme="Skye" card_title={card_title} /> <TCard theme="Skye" card_title={card_title} />
@ -38,6 +45,9 @@ export default function HomePage({ theme, page_title, card_title, children }) {
<Head> <Head>
<title>{page_title}</title> <title>{page_title}</title>
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<link rel="me" href="https://bark.lgbt/@alicew" />
<link rel="me" href="https://dragon.style/@alice" />
<link rel="me" href="https://mspsocial.net/@alice" />
</Head> </Head>
<div className="container space-y-4 mx-auto px-4 py-4"> <div className="container space-y-4 mx-auto px-4 py-4">
<TCard card_title={card_title} /> <TCard card_title={card_title} />