Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
0f5c7291
Commit
0f5c7291
authored
Apr 13, 2022
by
Stefan Probst
Browse files
chore: add google id
parent
f764be18
Pipeline
#290452
passed with stages
in 9 minutes and 9 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.env.production.local.example
View file @
0f5c7291
...
...
@@ -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=
...
...
.gitlab-ci.yml
View file @
0f5c7291
...
...
@@ -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
src/lib/cms/cms.config.ts
View file @
0f5c7291
...
...
@@ -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
],
}
src/lib/cms/collections/documentation-pages.ts
deleted
100644 → 0
View file @
f764be18
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
,
},
],
}
src/pages/_document.tsx
→
src/pages/_document.
page.
tsx
View file @
0f5c7291
...
...
@@ -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
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment