From e32eaa5e006b6e155888997314c169fd860bf8e4 Mon Sep 17 00:00:00 2001 From: nuno-aac Date: Wed, 31 Jan 2024 09:41:10 +0000 Subject: [PATCH 1/2] Update CMS label --- workspaces/cms-config/src/collections/seo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/cms-config/src/collections/seo.ts b/workspaces/cms-config/src/collections/seo.ts index 4a80231730..158bf456b2 100644 --- a/workspaces/cms-config/src/collections/seo.ts +++ b/workspaces/cms-config/src/collections/seo.ts @@ -2,7 +2,7 @@ import { CmsCollection } from "../types"; export const SEOCollectionConfig = { crowdin: true, - label: "SEO", + label: "Main Header", name: "seo", files: [ { From 6141dad4ba6a9ac4c0c77c2ba7b9ebd04ee9ec39 Mon Sep 17 00:00:00 2001 From: nuno-aac Date: Tue, 30 Jan 2024 11:48:57 +0000 Subject: [PATCH 2/2] Add seo fixes --- _data/settings/redirects.yml | 19 +++++++++++++++++++ _data/tutorials/0cairows02.yml | 2 +- workspaces/website/src/blocks/Block.tsx | 9 +++++---- .../website/src/blocks/MarkdownBlock.tsx | 5 +++-- .../src/pages/content/@slug/PostPage.tsx | 1 + 5 files changed, 29 insertions(+), 7 deletions(-) diff --git a/_data/settings/redirects.yml b/_data/settings/redirects.yml index 736e3185be..7cdbf17cfa 100644 --- a/_data/settings/redirects.yml +++ b/_data/settings/redirects.yml @@ -127,3 +127,22 @@ items: destination: /:locale/content - source: /posts destination: /en/content + - source: /en/posts/757155c6-ce07-49f1-af21-907b7e0b1cb1 + destination: https://www.starknet.io/en/content + - source: /en/announcements + destination: https://www.starknet.io/en/content + - source: /en/announcements/product-update-april-2023 + destination: https://www.starknet.io/en/content + - source: /en/posts/757155c6-ce07-49f1-af21-907b7e0b1cb1/introducing-the-starknet-foundation + destination: https://www.starknet.io/en/content/introducing-the-starknet-foundation + - source: /en/ + destination: https://www.starknet.io/en + - source: /en/announcements + destination: https://www.starknet.io/en/content + - source: /en/home + destination: https://www.starknet.io/en + - source: /en/announcements/product-update-april-2023 + destination: https://www.starknet.io/en/content + - source: /en/posts/757155c6-ce07-49f1-af21-907b7e0b1cb1 + destination: https://www.starknet.io/en/content + diff --git a/_data/tutorials/0cairows02.yml b/_data/tutorials/0cairows02.yml index 402bae8e04..c2a4bd1b67 100644 --- a/_data/tutorials/0cairows02.yml +++ b/_data/tutorials/0cairows02.yml @@ -2,7 +2,7 @@ id: 0cairows02 type: youtube url: https://youtu.be/51Qb3TLpNro image: /assets/cairows02.jpeg -title: "Account abstraction " +title: "Starknet Workshop #1 - Account Abstraction" authors: - author: StarkWare published_at: 2022-08-15T23:00:00.000Z diff --git a/workspaces/website/src/blocks/Block.tsx b/workspaces/website/src/blocks/Block.tsx index 636e3da7d3..6b6a19e0bf 100644 --- a/workspaces/website/src/blocks/Block.tsx +++ b/workspaces/website/src/blocks/Block.tsx @@ -22,6 +22,7 @@ import VideoSectionBlock from "./VideoSectionBlock"; import { NewsletterCard } from "@ui/Card/NewsletterCard"; interface Props { + disallowH1?: boolean; readonly block: TopLevelBlock; env: { CLOUDFLARE_RECAPTCHA_KEY: string; @@ -29,7 +30,7 @@ interface Props { readonly locale: string; } -export function Block({ block, env, locale }: Props): JSX.Element | null { +export function Block({ disallowH1, block, env, locale }: Props): JSX.Element | null { if (block.type === "basic_card") { return ; } else if (block.type === "container") { @@ -50,7 +51,7 @@ export function Block({ block, env, locale }: Props): JSX.Element | null { } else if (block.type === "newsletter_popup") { return ; } else if (block.type === "markdown") { - return ; + return ; } else if (block.type === "ambassadors_list") { return ; } else if (block.type === "community_events") { @@ -88,7 +89,7 @@ export function Block({ block, env, locale }: Props): JSX.Element | null { {block.blocks?.map((block, i) => ( - + ))} @@ -103,7 +104,7 @@ export function Block({ block, env, locale }: Props): JSX.Element | null { {blocks.map((block: any, i: number) => { return ( - + ); })} diff --git a/workspaces/website/src/blocks/MarkdownBlock.tsx b/workspaces/website/src/blocks/MarkdownBlock.tsx index a55dc0accf..7d67fc70a0 100644 --- a/workspaces/website/src/blocks/MarkdownBlock.tsx +++ b/workspaces/website/src/blocks/MarkdownBlock.tsx @@ -15,10 +15,11 @@ import CodeHighlight from "@ui/CodeHighlight/CodeHighlight"; import remarkGfm from 'remark-gfm' import '../style/table.css' interface Props { + readonly disallowH1?: boolean; readonly body: string; } -export function MarkdownBlock({ body }: Props): JSX.Element { +export function MarkdownBlock({ disallowH1, body }: Props): JSX.Element { return ( */} {post.blocks?.map((block, i) => (