[site,seo][s]: review page titles
This commit is contained in:
@@ -12,7 +12,6 @@ export default function MDXPage({ source, frontMatter }) {
|
|||||||
return <LayoutComponent {...frontMatter}>{children}</LayoutComponent>;
|
return <LayoutComponent {...frontMatter}>{children}</LayoutComponent>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<MDXRemote {...source} components={{ DocsPagination, NextSeo, Hero }} />
|
<MDXRemote {...source} components={{ DocsPagination, NextSeo, Hero }} />
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
showToc: false
|
showToc: false
|
||||||
showSidebar: false
|
showSidebar: false
|
||||||
|
title: "Markdown-based Websites Guide"
|
||||||
|
disableTitle: true
|
||||||
---
|
---
|
||||||
|
|
||||||
<Hero title="Markdown-based Websites" subtitle="Create markdown-based website, update it, add collaborators and discover markdown superpowers" />
|
<Hero title="Markdown-based Websites" subtitle="Create markdown-based website, update it, add collaborators and discover markdown superpowers" />
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
# Guides and tutorials
|
---
|
||||||
|
title: Guides and Tutorials
|
||||||
|
---
|
||||||
|
|
||||||
- [[howtos/analytics|How to add web analytics?]]
|
- [[howtos/analytics|How to add web analytics?]]
|
||||||
- [[howtos/seo|How to customize page metadata for SEO?]]
|
- [[howtos/seo|How to customize page metadata for SEO?]]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export default function DefaultLayout({ children, ...frontMatter }) {
|
|||||||
{/* Default layout */}
|
{/* Default layout */}
|
||||||
{!frontMatter.layout && (
|
{!frontMatter.layout && (
|
||||||
<>
|
<>
|
||||||
<h1>{frontMatter.title}</h1>
|
{!frontMatter.disableTitle && <h1>{frontMatter.title}</h1>}
|
||||||
{frontMatter.author && (
|
{frontMatter.author && (
|
||||||
<div className="-mt-6">
|
<div className="-mt-6">
|
||||||
<p className="opacity-60 pl-1">{frontMatter.author}</p>
|
<p className="opacity-60 pl-1">{frontMatter.author}</p>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export const DocsLayout: React.FC<any> = ({ children, ...frontMatter }) => {
|
|||||||
<time dateTime={created}>{formatDate(created)}</time>
|
<time dateTime={created}>{formatDate(created)}</time>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{title && <h1>{title}</h1>}
|
{!frontMatter.disableTitle && title && <h1>{title}</h1>}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<section>{children}</section>
|
<section>{children}</section>
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ function MyApp({ Component, pageProps }) {
|
|||||||
<DefaultSeo
|
<DefaultSeo
|
||||||
defaultTitle={siteConfig.title}
|
defaultTitle={siteConfig.title}
|
||||||
description={siteConfig.description}
|
description={siteConfig.description}
|
||||||
|
titleTemplate="PortalJS - %s"
|
||||||
{...siteConfig.nextSeo}
|
{...siteConfig.nextSeo}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,12 @@ import computeFields from '@/lib/computeFields';
|
|||||||
import clientPromise from '@/lib/mddb';
|
import clientPromise from '@/lib/mddb';
|
||||||
import { BlogsList, SimpleLayout } from '@portaljs/core';
|
import { BlogsList, SimpleLayout } from '@portaljs/core';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
import {NextSeo} from 'next-seo';
|
||||||
|
|
||||||
export default function Blog({ blogs }) {
|
export default function Blog({ blogs }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<NextSeo title="Blog posts" />
|
||||||
<Layout>
|
<Layout>
|
||||||
<SimpleLayout title="Blog posts">
|
<SimpleLayout title="Blog posts">
|
||||||
<BlogsList blogs={blogs} />
|
<BlogsList blogs={blogs} />
|
||||||
|
|||||||
Reference in New Issue
Block a user