You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The usage might shift directly into the extension methods, where they are used.
78
+
| Giscus | node | Enables the comment section. If left empty the comment secion will not be shown. For more information checkout the section about comments down below |
74
79
75
80
## Storage Provider
76
81
Currently there are 4 Storage-Provider:
@@ -79,13 +84,37 @@ Currently there are 4 Storage-Provider:
79
84
* Sqlite - Based on EF Core, so it can be easily adapted for other Sql Dialects
80
85
* SqlServer - Based on EF Core, so it can be easily adapted for other Sql Dialects
81
86
82
-
### Using
83
-
To use one of those just use the extension method in the Startup.cs in `ConfigureServices`:
84
-
```csharp
85
-
services.UseSqlAsStorageProvider();
87
+
## Comment Section
88
+
For comments the blog is using [giscus](https://giscus.app/). To provide the necessary values head over to https://giscus.app/ and go to the configuration section.
89
+
There you can enter all the information. You will find a detailed guide on the site.
90
+
91
+
In short:
92
+
* You need a public repository where the comments are hosted. Recommendation: Create a new repository just for the comments
93
+
* You have to link the [giscuss app](https://github.com/apps/giscus) to at least the repository where the comments are hosted
94
+
* You have to enable the discussion feature in the repository (see (here)[https://docs.github.com/en/github/administering-a-repository/managing-repository-settings/enabling-or-disabling-github-discussions-for-a-repository]
95
+
)
96
+
97
+
After you configured everything on the site, you get the `<script>` tag which you could embed. The blog needs the following information.
98
+
99
+
Here you can find an example. This is how the script tag looks on giscus.
100
+
```javascript
101
+
<script src="https://giscus.app/client.js"
102
+
data-repo="your_username/reponame"
103
+
data-repo-id="M9/ab=="
104
+
data-category="General"
105
+
data-category-id="AbC==/8_D"
106
+
async>
107
+
</script>
108
+
```
109
+
Now you can copy/paste those information into the appsettings.json. With the given information abobe your appsettings.json looks like this:
110
+
```json
111
+
"Giscus": {
112
+
"Repository": "your_username/reponame",
113
+
"RepositoryId": "M9/ab==",
114
+
"Category": "General",
115
+
"CategoryId": "AbC==/8_D"
116
+
}
86
117
```
87
-
88
-
It is only one storage provider at a time allowed. Registering multiple will result in an exception.
89
118
90
119
## Authorization
91
120
There is only one real mechanism enabled via Auth0. For more information go to: https://auth0.com/docs/applications
0 commit comments