vitepress-plugin-comment-with-giscus
Advanced tools
Comparing version 1.1.12 to 1.1.13
@@ -32,3 +32,2 @@ import giscus from '@giscus/vue'; | ||
} | ||
console.log(frontmatter?.value.comment); | ||
if (frontmatter?.value.comment !== undefined) { | ||
@@ -35,0 +34,0 @@ // If comment is false, comments are not loaded |
@@ -45,3 +45,2 @@ import giscus from '@giscus/vue'; | ||
} | ||
console.log(frontmatter?.value.comment); | ||
if (frontmatter?.value.comment !== undefined) { | ||
@@ -48,0 +47,0 @@ // If comment is false, comments are not loaded |
{ | ||
"name": "vitepress-plugin-comment-with-giscus", | ||
"version": "1.1.12", | ||
"version": "1.1.13", | ||
"description": "vitepress comment plugin based on giscus", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -22,7 +22,9 @@ # vitepress-plugin-comment-with-giscus | ||
In the `index` file under the `.vitepress/theme` path | ||
```ts | ||
// .vitepress/theme/index.js | ||
import DefaultTheme from 'vitepress/theme'; | ||
import giscusTalk from 'vitepress-plugin-comment-with-giscus'; | ||
import { useData, useRoute } from 'vitepress'; | ||
import { toRefs } from "vue"; | ||
@@ -37,3 +39,3 @@ export default { | ||
// Get frontmatter and route | ||
const { frontmatter } = useData(); | ||
const { frontmatter } = toRefs(useData()); | ||
const route = useRoute(); | ||
@@ -68,2 +70,4 @@ | ||
[Click to see the list of currently supported languages](https://github.com/giscus/giscus/blob/main/lib/i18n.tsx#L45) | ||
## Extended | ||
@@ -70,0 +74,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14005
108
251
1