mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 12:10:22 +02:00
Add noindex pages
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user