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) => (