feat: add support for giscus, utterances, disqus

This commit is contained in:
Ahmet ALMAZ
2021-07-14 23:52:46 +03:00
parent 5cd4d89f98
commit 6b90542652
7 changed files with 217 additions and 0 deletions

View File

@ -16,6 +16,40 @@ const siteMetadata = {
youtube: 'https://youtube.com',
linkedin: 'https://www.linkedin.com',
locale: 'en-US',
comment: {
provider: '', // supported providers: giscus, utterances, disqus
giscusConfig: {
repo: '', // username/repoName
// Visit the link below and copy/paste the 'repositoryId', 'category' and 'categoryId'
// https://giscus.app/api/discussions/categories?repo={username}%2F{repoName}
repositoryId: '',
category: '',
categoryId: '',
mapping: '', // supported options: pathname, url, title
reactions: '', // Emoji reactions: 1 = enable / 0 = disable
// Send discussion metadata periodically to the parent window: 1 = enable / 0 = disable
metadata: '',
// theme example: light, dark, dark_dimmed, dark_high_contrast
// transparent_dark, preferred_color_scheme, custom
theme: '',
// If the theme option above is set to 'custom`
// please provide a link below to your custom theme css file.
// example: https://giscus.app/themes/custom_example.css
themeURL: '',
},
utterancesConfig: {
repo: '', // username/repoName
issueTerm: '', // supported options: pathname, url, title
label: '', // label (optional): Comment 💬
// theme example: github-light, github-dark, preferred-color-scheme
// github-dark-orange, icy-dark, dark-blue, photon-dark, boxy-light
theme: '',
},
disqus: {
// https://help.disqus.com/en/articles/1717111-what-s-a-shortname
shortname: '',
},
},
}
module.exports = siteMetadata