fix: add noindex tag to user/member pages in addition to robots.txt

This commit is contained in:
Sam 2023-04-08 14:48:03 +02:00
parent 893244dc16
commit 041913675b
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
2 changed files with 2 additions and 0 deletions

View File

@ -253,6 +253,7 @@
/> />
<meta property="og:url" content="{PUBLIC_BASE_URL}/@{data.name}" /> <meta property="og:url" content="{PUBLIC_BASE_URL}/@{data.name}" />
<meta name="description" content="@{data.name} on pronouns.cc" /> <meta name="description" content="@{data.name} on pronouns.cc" />
<meta name="robots" content="noindex" />
{#if data.avatar} {#if data.avatar}
<meta property="og:image" content={userAvatars(data)[0]} /> <meta property="og:image" content={userAvatars(data)[0]} />

View File

@ -121,6 +121,7 @@
/> />
<meta property="og:url" content="{PUBLIC_BASE_URL}/@{data.user.name}/{data.name}" /> <meta property="og:url" content="{PUBLIC_BASE_URL}/@{data.user.name}/{data.name}" />
<meta name="description" content="{data.name} (@{data.user.name}) on pronouns.cc" /> <meta name="description" content="{data.name} (@{data.user.name}) on pronouns.cc" />
<meta name="robots" content="noindex" />
{#if data.avatar} {#if data.avatar}
<meta property="og:image" content={memberAvatars(data)[0]} /> <meta property="og:image" content={memberAvatars(data)[0]} />