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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ gitment.render('comments')
81
81
82
82
### 4. Initialize Your Comments
83
83
84
-
After the page published, you should visit your page, login with your GitHub account(make sure you're repo's owner), and click the initialize button, to create a related issue in your repo.
84
+
After the page is published, you should visit your page, login with your GitHub account(make sure you're repo's owner), and click the initialize button, to create a related issue in your repo.
85
85
After that, others can leave their comments.
86
86
87
87
## Methods
@@ -209,12 +209,12 @@ You can inspect the DOM structure in the browser and write your own styles.
209
209
A Gitment theme is an object contains several render functions.
210
210
211
211
By default Gitment has five render functions: `render`, `renderHeader`, `renderComments`, `renderEditor`, `renderFooter`.
212
-
The last four render independent components and `render`function renders them together.
212
+
The last four render independent components and `render`functions render them together.
213
213
All of them can be used independently.
214
214
215
215
You can override any render function above or write your own render function.
216
216
217
-
For example, you can override the `render` function to put editor before comments list, and render a new component.
217
+
For example, you can override the `render` function to put an editor before the comment list, and render a new component.
218
218
219
219
```javascript
220
220
constmyTheme= {
@@ -284,9 +284,9 @@ If you find a way to hack it, please [open an issue](https://github.com/imsun/gi
284
284
### Why does Gitment send a request to gh-oauth.imsun.net?
285
285
286
286
[https://gh-oauth.imsun.net](https://gh-oauth.imsun.net) is an simple open-source service to proxy [one request](https://developer.github.com/v3/oauth/#2-github-redirects-back-to-your-site) during users logging in.
287
-
Because GitHub does't attach a CORS header to it.
287
+
Because GitHub doesn't attach a CORS header to it.
288
288
289
-
This service won't record or store anything, only proxy and attach a CORS header to that request.
289
+
This service won't record or store anything. It only attaches a CORS header to that request and provides proxy.
290
290
So that users can login in the frontend without any server-side implementation.
291
291
292
292
For more details, checkout [this project](https://github.com/imsun/gh-oauth-server).
0 commit comments