upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
3 changed files with 4 additions and 13 deletions
Showing only changes of commit 8084247377 - Show all commits

View File

@ -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)

View File

@ -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

View File

@ -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