upstream #1
@ -21,7 +21,6 @@ const Giscus = ({ mapping }) => {
|
|||||||
script.src = 'https://giscus.app/client.js'
|
script.src = 'https://giscus.app/client.js'
|
||||||
script.setAttribute('data-repo', siteMetadata.comment.giscusConfig.repo)
|
script.setAttribute('data-repo', siteMetadata.comment.giscusConfig.repo)
|
||||||
script.setAttribute('data-repo-id', siteMetadata.comment.giscusConfig.repositoryId)
|
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-category-id', siteMetadata.comment.giscusConfig.categoryId)
|
||||||
script.setAttribute('data-mapping', mapping)
|
script.setAttribute('data-mapping', mapping)
|
||||||
script.setAttribute('data-reactions-enabled', siteMetadata.comment.giscusConfig.reactions)
|
script.setAttribute('data-reactions-enabled', siteMetadata.comment.giscusConfig.reactions)
|
||||||
|
@ -151,10 +151,9 @@ comment: {
|
|||||||
provider: '', // supported providers: giscus, utterances, disqus
|
provider: '', // supported providers: giscus, utterances, disqus
|
||||||
giscusConfig: {
|
giscusConfig: {
|
||||||
repo: '', // username/repoName
|
repo: '', // username/repoName
|
||||||
// Visit the link below and copy/paste the 'repositoryId', 'category' and 'categoryId'
|
// Visit the link below, enter your repo in the configuration section and copy the script data parameters
|
||||||
// https://giscus.app/api/discussions/categories?repo={username}%2F{repoName}
|
// https://giscus.app/
|
||||||
repositoryId: '',
|
repositoryId: '',
|
||||||
category: [],
|
|
||||||
categoryId: '',
|
categoryId: '',
|
||||||
mapping: '', // supported options: pathname, url, title
|
mapping: '', // supported options: pathname, url, title
|
||||||
reactions: '', // Emoji reactions: 1 = enable / 0 = disable
|
reactions: '', // Emoji reactions: 1 = enable / 0 = disable
|
||||||
|
@ -20,16 +20,9 @@ const siteMetadata = {
|
|||||||
provider: 'giscus', // supported providers: giscus, utterances, disqus
|
provider: 'giscus', // supported providers: giscus, utterances, disqus
|
||||||
giscusConfig: {
|
giscusConfig: {
|
||||||
repo: 'timlrx/tailwind-nextjs-starter-blog', // username/repoName
|
repo: 'timlrx/tailwind-nextjs-starter-blog', // username/repoName
|
||||||
// Visit the link below and copy/paste the 'repositoryId', 'category' and 'categoryId'
|
// Visit the link below, enter your repo in the configuration section and copy the script data parameters
|
||||||
// https://giscus.app/api/discussions/categories?repo={username}%2F{repoName}
|
// https://giscus.app/
|
||||||
repositoryId: 'MDEwOlJlcG9zaXRvcnkzMjgxMjEyNjA=',
|
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',
|
categoryId: 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDM4NDYw',
|
||||||
mapping: 'pathname', // supported options: pathname, url, title
|
mapping: 'pathname', // supported options: pathname, url, title
|
||||||
reactions: '1', // Emoji reactions: 1 = enable / 0 = disable
|
reactions: '1', // Emoji reactions: 1 = enable / 0 = disable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user