fix: giscus config
This commit is contained in:
parent
293f8ed5b5
commit
8084247377
@ -21,7 +21,6 @@ const Giscus = ({ mapping }) => {
|
||||
script.src = 'https://giscus.app/client.js'
|
||||
script.setAttribute('data-repo', siteMetadata.comment.giscusConfig.repo)
|
||||
script.setAttribute('data-repo-id', siteMetadata.comment.giscusConfig.repositoryId)
|
||||
script.setAttribute('data-category', siteMetadata.comment.giscusConfig.category)
|
||||
script.setAttribute('data-category-id', siteMetadata.comment.giscusConfig.categoryId)
|
||||
script.setAttribute('data-mapping', mapping)
|
||||
script.setAttribute('data-reactions-enabled', siteMetadata.comment.giscusConfig.reactions)
|
||||
|
@ -151,10 +151,9 @@ 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}
|
||||
// Visit the link below, enter your repo in the configuration section and copy the script data parameters
|
||||
// https://giscus.app/
|
||||
repositoryId: '',
|
||||
category: [],
|
||||
categoryId: '',
|
||||
mapping: '', // supported options: pathname, url, title
|
||||
reactions: '', // Emoji reactions: 1 = enable / 0 = disable
|
||||
|
@ -20,16 +20,9 @@ const siteMetadata = {
|
||||
provider: 'giscus', // supported providers: giscus, utterances, disqus
|
||||
giscusConfig: {
|
||||
repo: 'timlrx/tailwind-nextjs-starter-blog', // username/repoName
|
||||
// Visit the link below and copy/paste the 'repositoryId', 'category' and 'categoryId'
|
||||
// https://giscus.app/api/discussions/categories?repo={username}%2F{repoName}
|
||||
// Visit the link below, enter your repo in the configuration section and copy the script data parameters
|
||||
// https://giscus.app/
|
||||
repositoryId: 'MDEwOlJlcG9zaXRvcnkzMjgxMjEyNjA=',
|
||||
category: [
|
||||
{ emoji: '📣', id: 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDM4NDYw', name: 'Announcements' },
|
||||
{ emoji: '💬', id: 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDM4NDYx', name: 'General' },
|
||||
{ emoji: '🙏', id: 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDM4NDYy', name: 'Q&A' },
|
||||
{ emoji: '💡', id: 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDM4NDYz', name: 'Ideas' },
|
||||
{ emoji: '🙌', id: 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDM4NDY0', name: 'Show and tell' },
|
||||
],
|
||||
categoryId: 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDM4NDYw',
|
||||
mapping: 'pathname', // supported options: pathname, url, title
|
||||
reactions: '1', // Emoji reactions: 1 = enable / 0 = disable
|
||||
|
Loading…
x
Reference in New Issue
Block a user