mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Update main element with id 'main-content'
This commit is contained in:
@@ -15,7 +15,7 @@ const { frontmatter } = Astro.props;
|
|||||||
|
|
||||||
<Layout title={frontmatter.title}>
|
<Layout title={frontmatter.title}>
|
||||||
<Header activeNav="about" />
|
<Header activeNav="about" />
|
||||||
<main>
|
<main id="main-content">
|
||||||
<section class="mt-8 mb-28 prose prose-slate max-w-3xl">
|
<section class="mt-8 mb-28 prose prose-slate max-w-3xl">
|
||||||
<h1 class="text-2xl sm:text-3xl tracking-wider">{frontmatter.title}</h1>
|
<h1 class="text-2xl sm:text-3xl tracking-wider">{frontmatter.title}</h1>
|
||||||
<slot />
|
<slot />
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export interface Props {
|
|||||||
const { pageTitle, pageDesc } = Astro.props;
|
const { pageTitle, pageDesc } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<main>
|
<main id="main-content">
|
||||||
<h1>{pageTitle}</h1>
|
<h1>{pageTitle}</h1>
|
||||||
<p>{pageDesc}</p>
|
<p>{pageDesc}</p>
|
||||||
<slot />
|
<slot />
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const sortedPosts = getSortedPosts(posts);
|
|||||||
|
|
||||||
<Layout title="Welcome to Astro.">
|
<Layout title="Welcome to Astro.">
|
||||||
<Header />
|
<Header />
|
||||||
<main>
|
<main id="main-content">
|
||||||
<section id="hero">
|
<section id="hero">
|
||||||
<h1>Mingalaba<span>.</span></h1>
|
<h1>Mingalaba<span>.</span></h1>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const { Content, frontmatter } = Astro.props.post;
|
|||||||
|
|
||||||
<Layout title={frontmatter.title}>
|
<Layout title={frontmatter.title}>
|
||||||
<Header />
|
<Header />
|
||||||
<main>
|
<main id="main-content">
|
||||||
<h1 class="post-title">{frontmatter.title}</h1>
|
<h1 class="post-title">{frontmatter.title}</h1>
|
||||||
<Datetime datetime={frontmatter.datetime} size="lg" className="my-2" />
|
<Datetime datetime={frontmatter.datetime} size="lg" className="my-2" />
|
||||||
<article
|
<article
|
||||||
|
|||||||
Reference in New Issue
Block a user