Merge branch 'main' of github.com:datopian/portaljs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import '../styles/globals.css';
|
||||
import '../styles/tailwind.css';
|
||||
import '../styles/sib-form.css';
|
||||
|
||||
import Script from 'next/script';
|
||||
|
||||
@@ -46,7 +47,12 @@ function MyApp({ Component, pageProps }) {
|
||||
defaultTheme={siteConfig.theme.default}
|
||||
forcedTheme={siteConfig.theme.default ? null : 'light'}
|
||||
>
|
||||
<DefaultSeo defaultTitle={siteConfig.title} {...siteConfig.nextSeo} />
|
||||
<DefaultSeo
|
||||
defaultTitle={siteConfig.title}
|
||||
description={siteConfig.description}
|
||||
titleTemplate="PortalJS - %s"
|
||||
{...siteConfig.nextSeo}
|
||||
/>
|
||||
|
||||
{/* Global Site Tag (gtag.js) - Google Analytics */}
|
||||
{siteConfig.analytics && (
|
||||
|
||||
13
site/pages/_document.tsx
Normal file
13
site/pages/_document.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Html, Head, Main, NextScript } from 'next/document';
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head />
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
}
|
||||
@@ -3,10 +3,12 @@ import computeFields from '@/lib/computeFields';
|
||||
import clientPromise from '@/lib/mddb';
|
||||
import { BlogsList, SimpleLayout } from '@portaljs/core';
|
||||
import * as fs from 'fs';
|
||||
import {NextSeo} from 'next-seo';
|
||||
|
||||
export default function Blog({ blogs }) {
|
||||
return (
|
||||
<>
|
||||
<NextSeo title="Blog posts" />
|
||||
<Layout>
|
||||
<SimpleLayout title="Blog posts">
|
||||
<BlogsList blogs={blogs} />
|
||||
|
||||
@@ -7,6 +7,7 @@ import Layout from '../components/Layout';
|
||||
import { useRouter } from 'next/router';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { collectHeadings } from '@portaljs/core';
|
||||
import Head from 'next/head';
|
||||
|
||||
export default function Home({ sidebarTree }) {
|
||||
const router = useRouter();
|
||||
@@ -23,7 +24,11 @@ export default function Home({ sidebarTree }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Layout isHomePage={true} tableOfContents={tableOfContents} sidebarTree={sidebarTree} >
|
||||
<Layout
|
||||
isHomePage={true}
|
||||
tableOfContents={tableOfContents}
|
||||
sidebarTree={sidebarTree}
|
||||
>
|
||||
<Features />
|
||||
<Showcases />
|
||||
<Community />
|
||||
|
||||
Reference in New Issue
Block a user