mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 19:41:02 +08:00
Add social media & SEO meta tags
This commit is contained in:
@@ -14,11 +14,20 @@ const { title } = Astro.props;
|
|||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
|
|
||||||
|
<!-- meta tags for social media & SEO -->
|
||||||
|
<meta name="author" content="Sat Naing" />
|
||||||
|
<meta name="description" content="custom_description" />
|
||||||
|
<meta property="og:title" content="og_title" />
|
||||||
|
<meta property="og:description" content="og_description" />
|
||||||
|
<meta property="og:image" content="/some-image.png" />
|
||||||
|
<meta property="og:url" content="/this-page.html" />
|
||||||
|
<meta property="og:site_name" content="og_site_name" />
|
||||||
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
<meta name="twitter:image:alt" content="twitter_image_description" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<slot />
|
<slot />
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
|
--font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
|
||||||
@@ -40,8 +49,6 @@ const { title } = Astro.props;
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style is:global>
|
<style is:global>
|
||||||
@@ -54,7 +61,9 @@ const { title } = Astro.props;
|
|||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
font-family: Menlo, Monaco, Lucida Console, Liberation Mono,
|
||||||
Bitstream Vera Sans Mono, Courier New, monospace;
|
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user