fix typos
This commit is contained in:
parent
0f7516edb4
commit
9edd34d079
@ -76,7 +76,6 @@ Let's assume you want Isso on `/isso`, use the following nginx snippet
|
|||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
|
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl;
|
||||||
server_name example.tld;
|
server_name example.tld;
|
||||||
@ -126,7 +125,7 @@ when using [require.js][r.js]:
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<link rel="stylesheet" href="/static/isso.css" />
|
<link rel="stylesheet" href="/static/isso.css" />
|
||||||
<script data-main="/js/main" src="/js/require.js"></script>
|
<script data-main="/js/embed" src="/js/require.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -140,7 +139,7 @@ Alternatives
|
|||||||
------------
|
------------
|
||||||
|
|
||||||
- [talkatv](https://github.com/talkatv/talkatv) – Python
|
- [talkatv](https://github.com/talkatv/talkatv) – Python
|
||||||
- [Juvia](https://github.com/phusion/juvia – Ruby on Rails
|
- [Juvia](https://github.com/phusion/juvia) – Ruby on Rails
|
||||||
- [Tildehash.com](http://www.tildehash.com/?article=why-im-reinventing-disqus) – PHP
|
- [Tildehash.com](http://www.tildehash.com/?article=why-im-reinventing-disqus) – PHP
|
||||||
- [SO: Unobtrusive, self-hosted comments](http://stackoverflow.com/q/2053217)
|
- [SO: Unobtrusive, self-hosted comments](http://stackoverflow.com/q/2053217)
|
||||||
|
|
||||||
|
@ -6,8 +6,7 @@ define(["app/api", "lib/HTML"], function(api, HTML) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var uri = el.href.match("^(.+)#isso-thread$")[1]
|
var uri = el.href.match("^(.+)#isso-thread$")[1]
|
||||||
.replace(/^.*\/\/[^\/]+/, '');
|
.replace(/^.*\/\/[^\/]+/, '');
|
||||||
console.log(uri)
|
|
||||||
api.count(uri).then(function(rv) {
|
api.count(uri).then(function(rv) {
|
||||||
el.textContent = rv + (rv > 1 ? " Kommentare" : " Kommentar");
|
el.textContent = rv + (rv > 1 ? " Kommentare" : " Kommentar");
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user