Skip to content

Commit

Permalink
Add noindex pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Apr 16, 2023
1 parent f13c29a commit 275c2c3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/layouts/SettingLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/pages/forgot-password.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/reset-password.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions src/pages/settings/update-password.astro
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/update-profile.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/verification-pending.astro
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/verify-account.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 275c2c3

Please sign in to comment.