Add noindex pages

pull/3821/head
Kamran Ahmed 2 years ago
parent f13c29adad
commit 275c2c3c88
  1. 2
      src/layouts/SettingLayout.astro
  2. 2
      src/pages/404.astro
  3. 2
      src/pages/forgot-password.astro
  4. 2
      src/pages/reset-password.astro
  5. 4
      src/pages/settings/update-password.astro
  6. 2
      src/pages/settings/update-profile.astro
  7. 4
      src/pages/verification-pending.astro
  8. 2
      src/pages/verify-account.astro

@ -6,7 +6,7 @@ export interface Props extends BaseLayoutProps {}
const props = Astro.props;
---
<BaseLayout {...props}>
<BaseLayout {...props} noIndex={true}>
<slot />
<div slot='page-footer'></div>
</BaseLayout>

@ -7,7 +7,7 @@ const roadmapIds = await getRoadmapIds();
const legacyRoadmapUrls = [...roadmapIds.map((id) => `/${id}/`), '/roadmaps/'];
---
<BaseLayout title='Page not found' permalink={'/404'}>
<BaseLayout title='Page not found' permalink={'/404'} noIndex={true}>
<!-- Legacy roadmp pages handling -->
<script slot='after-header' define:vars={{ legacyRoadmapUrls }}>
// If it's a roadmap page and it ends with a slash

@ -3,7 +3,7 @@ import { ForgotPasswordForm } from '../components/AuthenticationFlow/ForgotPassw
import SettingLayout from '../layouts/SettingLayout.astro';
---
<SettingLayout title='Forgot Password'>
<SettingLayout title='Forgot Password' noIndex={true}>
<div class='container'>
<div
class='mx-auto flex flex-col items-start justify-start pb-28 pt-10 sm:max-w-[400px] sm:items-center sm:justify-center sm:pt-20'

@ -3,7 +3,7 @@ import ResetPasswordForm from '../components/AuthenticationFlow/ResetPasswordFor
import SettingLayout from '../layouts/SettingLayout.astro';
---
<SettingLayout title='Reset Password'>
<SettingLayout title='Reset Password' noIndex={true}>
<div class='container'>
<div
class='mx-auto flex flex-col items-start justify-start pb-28 pt-10 sm:max-w-[400px] sm:items-center sm:justify-center sm:pt-20'

@ -1,10 +1,10 @@
---
import UpdatePasswordForm from '../../components/Setting/UpdatePasswordForm';
import SettingSidebar from '../../components/Setting/SettingSidebar.astro';
import UpdatePasswordForm from '../../components/Setting/UpdatePasswordForm';
import SettingLayout from '../../layouts/SettingLayout.astro';
---
<SettingLayout title='Change Password' description=''>
<SettingLayout title='Change Password' description='' noIndex={true}>
<SettingSidebar pageUrl='change-password' name='Change Password'>
<UpdatePasswordForm client:load />
</SettingSidebar>

@ -4,7 +4,7 @@ import { UpdateProfileForm } from '../../components/Setting/UpdateProfileForm';
import SettingLayout from '../../layouts/SettingLayout.astro';
---
<SettingLayout title='Update Profile'>
<SettingLayout title='Update Profile' noIndex={true}>
<SettingSidebar pageUrl='profile' name='Profile'>
<UpdateProfileForm client:load />
</SettingSidebar>

@ -1,9 +1,9 @@
---
import SettingLayout from '../layouts/SettingLayout.astro';
import { VerificationEmailMessage } from '../components/AuthenticationFlow/VerificationEmailMessage';
import SettingLayout from '../layouts/SettingLayout.astro';
---
<SettingLayout title='Verify Email'>
<SettingLayout title='Verify Email' noIndex={true}>
<section class='container py-8 sm:py-20'>
<VerificationEmailMessage client:load />
</section>

@ -3,7 +3,7 @@ import { TriggerVerifyAccount } from '../components/AuthenticationFlow/TriggerVe
import SettingLayout from '../layouts/SettingLayout.astro';
---
<SettingLayout title='Verify account'>
<SettingLayout title='Verify account' noIndex={true}>
<div class='container py-16'>
<TriggerVerifyAccount client:load />
</div>

Loading…
Cancel
Save