Skip to content

Commit 7f3e1a5

Browse files
mulder21cmulder21c
authored andcommitted
add LiveRe Platform (소셜덧글 플랫폼)
1 parent 2923611 commit 7f3e1a5

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,29 @@ npm run font
105105

106106
See the [_config.yml.example](https://github.com/HyunSeob/hexo-theme-overdose/blob/master/_config.yml.example) file.
107107

108-
## Disqus
108+
### Disqus
109109

110110
``` yml
111111
# _config.yml of base, not theme config
112112
# Please put your shortname of disqus here.
113113
disqus_shortname:
114114
```
115+
### LiveRe
116+
117+
LiveRe is social media comment platcform suitable for Korean SNS, like disqus. <br>
118+
see [LiveRe](https://livere.com/). <br>
119+
You can get your uid from livere setting code as below.
120+
121+
``` html
122+
<div id="lv-container" data-id="city" data-uid="your uid code">
123+
```
124+
how to set
125+
126+
``` yml
127+
# Please put your uid of live here.
128+
liveRe:
129+
uid:
130+
```
115131
116132
### Post Front matter
117133

_config.yml.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,7 @@ facebook:
7474
fb_admin:
7575
twitter:
7676
google_plus:
77+
78+
#liveRe
79+
liveRe:
80+
uid:

layout/includes/article.jade

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ article#article.article(itemscope itemtype="https://schema.org/BlogPosting")
5050
meta(itemprop="name" content="#{config.author}")
5151

5252
include sharer
53+
54+
if theme.liveRe.uid
55+
#lv-container(data-id="city", data-uid="#{theme.liveRe.uid}")
56+
script.
57+
(function(d, s) {
58+
var j, e = d.getElementsByTagName(s)[0];
59+
if (typeof LivereTower === 'function') { return; }
60+
j = d.createElement(s);
61+
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
62+
j.async = true;
63+
e.parentNode.insertBefore(j, e);
64+
})(document, 'script');
65+
5366

5467
// Disqus Code
5568
if config.disqus_shortname

0 commit comments

Comments
 (0)