upstream #1
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: 'New features in v1'
|
title: 'New features in v1'
|
||||||
date: '2021-07-18'
|
date: '2021-07-21'
|
||||||
tags: ['next-js', 'tailwind', 'guide']
|
tags: ['next-js', 'tailwind', 'guide']
|
||||||
draft: false
|
draft: false
|
||||||
summary: 'An overview of the new features released in v1 - code block copy, multiple authors, frontmatter layout and more'
|
summary: 'An overview of the new features released in v1 - code block copy, multiple authors, frontmatter layout and more'
|
||||||
@ -148,31 +148,34 @@ To enable, simply configure `siteMetadata.js` comments property with the desired
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
comment: {
|
comment: {
|
||||||
provider: '', // supported providers: giscus, utterances, disqus
|
// Select a provider and use the environment variables associated to it
|
||||||
|
// https://vercel.com/docs/environment-variables
|
||||||
|
provider: 'giscus', // supported providers: giscus, utterances, disqus
|
||||||
giscusConfig: {
|
giscusConfig: {
|
||||||
repo: '', // username/repoName
|
// Visit the link below, and follow the steps in the 'configuration' section
|
||||||
// Visit the link below, enter your repo in the configuration section and copy the script data parameters
|
|
||||||
// Before that you should create a new Github discussions category with the Announcements type so that new discussions can only be created by maintainers and giscus
|
|
||||||
// https://giscus.app/
|
// https://giscus.app/
|
||||||
repositoryId: '',
|
repo: process.env.NEXT_PUBLIC_GISCUS_REPO,
|
||||||
category: '',
|
repositoryId: process.env.NEXT_PUBLIC_GISCUS_REPOSITORY_ID,
|
||||||
categoryId: '',
|
category: process.env.NEXT_PUBLIC_GISCUS_CATEGORY,
|
||||||
mapping: '', // supported options: pathname, url, title
|
categoryId: process.env.NEXT_PUBLIC_GISCUS_CATEGORY_ID,
|
||||||
reactions: '', // Emoji reactions: 1 = enable / 0 = disable
|
mapping: 'pathname', // supported options: pathname, url, title
|
||||||
|
reactions: '1', // Emoji reactions: 1 = enable / 0 = disable
|
||||||
// Send discussion metadata periodically to the parent window: 1 = enable / 0 = disable
|
// Send discussion metadata periodically to the parent window: 1 = enable / 0 = disable
|
||||||
metadata: '',
|
metadata: '0',
|
||||||
// theme example: light, dark, dark_dimmed, dark_high_contrast
|
// theme example: light, dark, dark_dimmed, dark_high_contrast
|
||||||
// transparent_dark, preferred_color_scheme, custom
|
// transparent_dark, preferred_color_scheme, custom
|
||||||
theme: '',
|
theme: 'light',
|
||||||
// theme when dark mode
|
// theme when dark mode
|
||||||
darkTheme: '',
|
darkTheme: 'transparent_dark',
|
||||||
// If the theme option above is set to 'custom`
|
// If the theme option above is set to 'custom`
|
||||||
// please provide a link below to your custom theme css file.
|
// please provide a link below to your custom theme css file.
|
||||||
// example: https://giscus.app/themes/custom_example.css
|
// example: https://giscus.app/themes/custom_example.css
|
||||||
themeURL: '',
|
themeURL: '',
|
||||||
},
|
},
|
||||||
utterancesConfig: {
|
utterancesConfig: {
|
||||||
repo: '', // username/repoName
|
// Visit the link below, and follow the steps in the 'configuration' section
|
||||||
|
// https://utteranc.es/
|
||||||
|
repo: process.env.NEXT_PUBLIC_UTTERANCES_REPO,
|
||||||
issueTerm: '', // supported options: pathname, url, title
|
issueTerm: '', // supported options: pathname, url, title
|
||||||
label: '', // label (optional): Comment 💬
|
label: '', // label (optional): Comment 💬
|
||||||
// theme example: github-light, github-dark, preferred-color-scheme
|
// theme example: github-light, github-dark, preferred-color-scheme
|
||||||
@ -183,9 +186,9 @@ comment: {
|
|||||||
},
|
},
|
||||||
disqus: {
|
disqus: {
|
||||||
// https://help.disqus.com/en/articles/1717111-what-s-a-shortname
|
// https://help.disqus.com/en/articles/1717111-what-s-a-shortname
|
||||||
shortname: '',
|
shortname: process.env.NEXT_PUBLIC_DISQUS_SHORTNAME,
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
## Multiple authors
|
## Multiple authors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user