Commit 0f5c7291 authored by Stefan Probst's avatar Stefan Probst
Browse files

chore: add google id

parent f764be18
Pipeline #290452 passed with stages
in 9 minutes and 9 seconds
......@@ -18,10 +18,14 @@
# NEXT_PUBLIC_GITLAB_REPOSITORY_BRANCH=
# NEXT_PUBLIC_GITLAB_APP_ID=
# Matomo Analytics
# NEXT_PUBLIC_MATOMO_BASE_URL=
# NEXT_PUBLIC_MATOMO_APP_ID=
# Google Site Verification
# NEXT_PUBLIC_GOOGLE_SITE_ID=
# Contact email
# SMTP_SERVER=
# SMTP_PORT=
......
......@@ -34,4 +34,5 @@ build:
NEXT_PUBLIC_BASE_URL: 'https://marketplace.sshopencloud.eu'
NEXT_PUBLIC_SSHOC_API_BASE_URL: 'https://marketplace-api.sshopencloud.eu'
NEXT_PUBLIC_MATOMO_APP_ID: '179'
NEXT_PUBLIC_GOOGLE_SITE_ID: 'nGy-4NymUoG2gvqsocWhF8A7TY9wVh5bAVIrPMNeC8M'
- when: on_success
......@@ -2,7 +2,6 @@ import type { CmsConfig } from 'netlify-cms-core'
import { collection as aboutPages } from '@/lib/cms/collections/about-pages'
import { collection as contributePages } from '@/lib/cms/collections/contribute-pages'
import { collection as documentationPages } from '@/lib/cms/collections/documentation-pages'
import { collection as pageSections } from '@/lib/cms/collections/page-sections'
import { backend, logo, siteUrl, useLocalBackend } from '~/config/cms.config'
......@@ -42,5 +41,5 @@ export const config: CmsConfig = {
editor: {
preview: false,
},
collections: [aboutPages, contributePages, documentationPages, pageSections],
collections: [aboutPages, contributePages, pageSections],
}
import type { CmsCollection } from 'netlify-cms-core'
export const collection: CmsCollection = {
name: 'documentation-pages',
label: 'Documentation pages',
label_singular: 'Documentation page',
format: 'frontmatter',
extension: 'page.mdx',
folder: 'src/pages/documentation',
/** Disallow creating new pages to ensure sensible route pathnames. */
create: false,
delete: false,
fields: [
{
name: 'title',
label: 'Title',
},
// {
// name: 'navigationMenu',
// label: 'Navigation menu',
// widget: 'object',
// fields: [
// { name: 'title', label: 'Title' },
// { name: 'position', label: 'Position', widget: 'number' },
// ],
// },
{
name: 'body',
label: 'Text',
widget: 'markdown',
},
{
name: 'toc',
label: 'Show table of contents',
widget: 'boolean',
required: false,
},
],
}
......@@ -15,6 +15,13 @@ export default function Document(): JSX.Element {
/> */}
<PreloadData />
<InitialThemeScript />
{typeof process.env['NEXT_PUBLIC_GOOGLE_SITE_ID'] === 'string' &&
process.env['NEXT_PUBLIC_GOOGLE_SITE_ID'].length > 0 ? (
<meta
name="google-site-verification"
content={process.env['NEXT_PUBLIC_GOOGLE_SITE_ID']}
/>
) : null}
</Head>
<body>
<Main />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment