Lorenzo DellacĂ
e9c2f9ea41
- display images as blocks - style and add <hr> div before comments section move remark42 from subdomain to subdirectory
23 lines
1.2 KiB
JavaScript
23 lines
1.2 KiB
JavaScript
var remark_config = {
|
|
host: "https://services.mind-overflow.net/comments",
|
|
site_id: 'mindoverflow',
|
|
components: ['embed'], // optional param; which components to load. default to ["embed"]
|
|
// to load all components define components as ['embed', 'last-comments', 'counter']
|
|
// available component are:
|
|
// - 'embed': basic comments widget
|
|
// - 'last-comments': last comments widget, see `Last Comments` section below
|
|
// - 'counter': counter widget, see `Counter` section below
|
|
max_shown_comments: 10, // optional param; if it isn't defined default value (15) will be used
|
|
theme: 'dark', // optional param; if it isn't defined default value ('light') will be used
|
|
locale: 'en' // set up locale and language, if it isn't defined default value ('en') will be used
|
|
};
|
|
|
|
(function(c) {
|
|
for(var i = 0; i < c.length; i++){
|
|
var d = document, s = d.createElement('script');
|
|
s.src = remark_config.host + '/web/' +c[i] +'.js';
|
|
s.defer = true;
|
|
(d.head || d.body).appendChild(s);
|
|
}
|
|
})(remark_config.components || ['embed']);
|