1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-01-17 14:18:17 +01:00

Fix canonical URLs (#7531)

This commit is contained in:
Kamran Ahmed 2024-10-18 22:36:39 +01:00 committed by GitHub
parent ad2095bcce
commit 029e45c5c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
23 changed files with 22 additions and 15 deletions

View File

@ -6,7 +6,6 @@ seo:
title: 'Consistency Patterns - roadmap.sh'
description: 'Everything you need to know about Week, Strong and Eventual Consistency'
isNew: false
canonicalUrl: 'https://cs.fyi/guide/consistency-patterns-week-strong-eventual/'
type: 'textual'
date: 2023-01-18
sitemap:

View File

@ -60,7 +60,7 @@ const { response: userCounts } =
---
<BaseLayout
permalink={`/${roadmapId}`}
permalink={`/${roadmapId}/projects`}
title={seoTitle}
description={seoDescription}
briefTitle={roadmapData.briefTitle}

View File

@ -8,6 +8,7 @@ import { FriendsPage } from '../../components/Friends/FriendsPage';
title='Friends'
noIndex={true}
initialLoadingMessage='Loading friends'
permalink="/account/friends"
>
<AccountSidebar activePageId='friends' activePageTitle='Friends'>
<FriendsPage client:only="react" />

View File

@ -8,6 +8,7 @@ import AccountLayout from '../../layouts/AccountLayout.astro';
title='Activity'
noIndex={true}
initialLoadingMessage={'Loading activity'}
permalink="/account"
>
<AccountSidebar activePageId='activity' activePageTitle='Activity'>
<ActivityPage client:only='react' />

View File

@ -8,6 +8,7 @@ import { RoadCardPage } from '../../components/RoadCard/RoadCardPage';
title='Road Card'
noIndex={true}
initialLoadingMessage='Preparing card'
permalink="/account/road-card"
>
<AccountSidebar activePageId='road-card' activePageTitle='Road Card'>
<RoadCardPage client:only="react" />

View File

@ -8,6 +8,7 @@ import { RoadmapListPage } from '../../components/CustomRoadmap/RoadmapListPage'
title='Roadmaps'
noIndex={true}
initialLoadingMessage='Loading roadmaps'
permalink="/account/roadmaps"
>
<AccountSidebar activePageId='roadmaps' activePageTitle='Roadmaps'>
<RoadmapListPage client:only='react' />

View File

@ -10,6 +10,7 @@ import { ProfileSettingsPage } from '../../components/ProfileSettings/ProfileSet
description=''
noIndex={true}
initialLoadingMessage={'Loading settings'}
permalink="/account/settings"
>
<AccountSidebar activePageId='settings' activePageTitle='Settings'>
<ProfileSettingsPage client:load />

View File

@ -8,6 +8,7 @@ import AccountLayout from '../../layouts/AccountLayout.astro';
title='Update Profile'
noIndex={true}
initialLoadingMessage={'Loading profile'}
permalink="/account/update-profile"
>
<AccountSidebar activePageId='profile' activePageTitle='Profile'>
<UpdatePublicProfileForm client:load />

View File

@ -3,6 +3,6 @@ import { ExploreAIRoadmap } from '../../components/ExploreAIRoadmap/ExploreAIRoa
import BaseLayout from '../../layouts/BaseLayout.astro';
---
<BaseLayout title='Explore AI Generated Roadmaps'>
<BaseLayout title='Explore AI Generated Roadmaps' permalink="/ai/explore">
<ExploreAIRoadmap client:load />
</BaseLayout>

View File

@ -3,6 +3,6 @@ import { GenerateRoadmap } from '../../components/GenerateRoadmap/GenerateRoadma
import BaseLayout from '../../layouts/BaseLayout.astro';
---
<BaseLayout title='Roadmap AI'>
<BaseLayout title='Roadmap AI' permalink="/ai">
<GenerateRoadmap client:load />
</BaseLayout>

View File

@ -25,7 +25,7 @@ const ogImageUrl =
<BaseLayout
title={replaceVariables(guideData.seo.title)}
description={replaceVariables(guideData.seo.description)}
permalink={`/backend/languages`}
permalink={`/backend/frameworks`}
canonicalUrl={guideData.canonicalUrl}
ogImageUrl={ogImageUrl}
>

View File

@ -11,7 +11,7 @@ const allChangelogs = await getAllChangelogs();
<BaseLayout
title='Changelogs'
description='Changelogs for the updates and changes to roadmap.sh'
permalink='/changelogs'
permalink='/changelog'
noIndex={true}
>
<div class='bg-gray-100 px-4'>

View File

@ -7,6 +7,6 @@ const description =
'Explore the community-created roadmaps to learn new skills, tools, and technologies. You can also create your own roadmap and share it with the world.';
---
<BaseLayout title={title} description={description}>
<BaseLayout title={title} description={description} permalink="/community">
<DiscoverRoadmaps client:load />
</BaseLayout>

View File

@ -56,7 +56,7 @@ const enrichedBestPractices = bestPractices.map((bestPractice) => {
});
---
<BaseLayout title='Dashboard' noIndex={true}>
<BaseLayout title='Dashboard' noIndex={true} permalink="/dashboard">
<DashboardPage
builtInRoleRoadmaps={enrichedRoleRoadmaps}
builtInSkillRoadmaps={enrichedSkillRoadmaps}

View File

@ -4,7 +4,7 @@ import AccountLayout from '../layouts/AccountLayout.astro';
import {AccountTerms} from "../components/AccountTerms";
---
<AccountLayout title='Forgot Password' noIndex={true}>
<AccountLayout title='Forgot Password' noIndex={true} permalink="/forgot-password">
<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'

View File

@ -37,7 +37,7 @@ import { TipItem } from '../components/GetStarted/TipItem';
<BaseLayout
title='Developer Roadmaps'
description={'Step by step guides and paths to learn different tools or technologies'}
permalink={'/roadmaps'}
permalink={'/get-started'}
>
<div class='bg-gradient-to-b from-gray-200 to-white py-4 sm:py-8 md:py-12'>
<div class='container'>

View File

@ -11,7 +11,7 @@ const { response: leaderboardStats, error: leaderboardError } =
await leaderboardClient.listLeaderboardStats();
---
<BaseLayout title='Leaderboard'>
<BaseLayout title='Leaderboard' permalink="/leaderboard">
{leaderboardError && <ErrorPage error={leaderboardError} />}
{
leaderboardStats && (

View File

@ -7,7 +7,7 @@ import AccountLayout from '../layouts/AccountLayout.astro';
<AccountLayout
title='Login - roadmap.sh'
description='Register yourself to receive occasional emails about new roadmaps, updates, guides and videos'
permalink={'/signup'}
permalink={'/login'}
noIndex={true}
>
<div class='container'>

View File

@ -2,6 +2,7 @@
layout: ../layouts/MarkdownLayout.astro
title: Privacy Policy - roadmap.sh
noIndex: true
permalink: /privacy
---
# Privacy Policy

View File

@ -37,7 +37,7 @@ const githubUrl = `https://github.com/kamranahmedse/developer-roadmap/tree/maste
---
<BaseLayout
permalink={`/projects/${projectId}`}
permalink={`/projects/${projectId}/solutions`}
title={projectData?.seo?.title}
briefTitle={projectData.title}
ogImageUrl={ogImageUrl}

View File

@ -10,7 +10,7 @@ const questionGroups = await getAllQuestionGroups();
<BaseLayout
title='Questions'
description={'Step by step guides and paths to learn different tools or technologies'}
permalink={'/roadmaps'}
permalink={'/questions'}
>
<SimplePageHeader
title='Questions'

View File

@ -56,7 +56,7 @@ const enrichedBestPractices = bestPractices.map((bestPractice) => {
});
---
<BaseLayout title='Dashboard' noIndex={true}>
<BaseLayout title='Team' noIndex={true} permalink="/team">
<DashboardPage
builtInRoleRoadmaps={enrichedRoleRoadmaps}
builtInSkillRoadmaps={enrichedSkillRoadmaps}

View File

@ -2,6 +2,7 @@
layout: ../layouts/MarkdownLayout.astro
title: Terms and Conditions - roadmap.sh
noIndex: true
permalink: /terms
---
# Terms of Service