Skip to content

Commit c2cb795

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 4a355a3 + 0d939db commit c2cb795

File tree

10 files changed

+88
-12
lines changed

10 files changed

+88
-12
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,29 @@ $ hexo server
6767

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

70-
## Disqus
70+
### Disqus
7171

7272
``` yml
7373
# _config.yml of base, not theme config
7474
# Please put your shortname of disqus here.
7575
disqus_shortname:
7676
```
77+
### LiveRe
78+
79+
LiveRe is social media comment platcform suitable for Korean SNS, like disqus. <br>
80+
see [LiveRe](https://livere.com/). <br>
81+
You can get your uid from livere setting code as below.
82+
83+
``` html
84+
<div id="lv-container" data-id="city" data-uid="your uid code">
85+
```
86+
how to set
87+
88+
``` yml
89+
# Please put your uid of live here.
90+
liveRe:
91+
uid:
92+
```
7793
7894
### Post Front matter
7995

_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

layout/includes/head.jade

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
fb_app_id: theme.facebook,
1414
fb_admins: theme.fb_admin,
1515
twitter_id: theme.twitter,
16-
google_plus: theme.google_plus
16+
google_plus: theme.google_plus,
17+
url: config.url.replace(/($|\/$)/, "/") + page.canonical_path.replace('index.html', '')
1718
});
1819
- var highlight = (theme.highlight && (typeof theme.highlight === 'string')) ? theme.highlight : 'dracula';
1920

2021
meta(charset='UTF-8')
2122
meta(http-equiv="X-UA-Compatible" content="IE=edge")
22-
meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1")
23+
meta(name="viewport" content="width=device-width, initial-scale=1")
2324

2425
title= pageTitle
2526

@@ -42,7 +43,7 @@ if is_post()
4243
if theme.favicon
4344
link(rel="icon" href=theme.favicon)
4445
if theme.profile.social.rss
45-
link(rel="alternative" href=theme.profile.social.rss type="application/atom+xml" title=config.title)
46+
link(rel="alternate" href=theme.profile.social.rss type="application/atom+xml" title=config.title)
4647

4748
if theme.google_site_verification
4849
meta(name="google-site-verification" content="#{theme.google_site_verification}")

layout/includes/layout.jade

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ html(lang=config.language)
55
body(itemscope itemtype="https://schema.org/WebPage")
66
include menu
77
.page-background
8-
.content-outer
9-
.content-inner(itemscope itemtype="https://schema.org/Blog")
10-
if body
11-
div!= body
12-
else
13-
block content
8+
.content-container
9+
.content-outer
10+
.content-inner(itemscope itemtype="https://schema.org/Blog")
11+
if body
12+
div!= body
13+
else
14+
block content
1415
include footer
1516

1617
if theme.dynamic_menu

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"description": "The theme which you must be overdosed.",
55
"private": true,
66
"scripts": {
7-
"build": "uglifyjs ./source/js/dynamicMenu.js -m -o ./source/js/dynamicMenu.min.js;uglifyjs ./source/js/sharer.js -m -o ./source/js/sharer.min.js;cat ./source/js/dynamicMenu.min.js ./source/js/sharer.min.js > ./source/js/index.min.js",
7+
"build-dynamicMenu": "node_modules/.bin/uglifyjs ./source/js/dynamicMenu.js -m -o ./source/js/dynamicMenu.min.js",
8+
"build-share": "node_modules/.bin/uglifyjs ./source/js/sharer.js -m -o ./source/js/sharer.min.js",
9+
"build-index" : "cat ./source/js/dynamicMenu.min.js ./source/js/sharer.min.js > ./source/js/index.min.js",
10+
"build" : "npm run build-dynamicMenu && npm run build-share && npm run build-index",
811
"cssbuild": "postcss \"src/css/index.css\" --output \"source/css/index.css\""
912
},
1013
"devDependencies": {

source/css/layout.scss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@import "bourbon";
2+
@import "variables";
3+
@import "custom-mixin";
4+
5+
.page-background {
6+
z-index: -1;
7+
background-color: $white;
8+
@include position(fixed, 0 0 0 0);
9+
}
10+
11+
.content-container{
12+
display:table-row;
13+
width:100%;
14+
}
15+
16+
.content-outer {
17+
margin-top: $menu-height * 2;
18+
@media #{$desktop} {
19+
margin-top: $menu-height;
20+
}
21+
}
22+
23+
.content-inner {
24+
width: 100%;
25+
padding: $base-margin 0;
26+
}
27+
28+
#footer{
29+
display:table-row;
30+
width:100%;
31+
height:1px;
32+
}

src/css/footer.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
.copyright {
44
background-color: var(--lighted-gray);
55
text-align: center;
6-
padding: 2rem 0;
6+
padding: 2rem 0 5rem;
77
margin: 0;
88
}

src/css/menu.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
}
77

88
.menu {
9+
display:table-row;
910
width: 100%;
1011
background-color: var(--white);
1112
border-bottom: 1px solid var(--lighted-gray);

src/css/overdose.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@
22

33
/* Global common styles */
44
html {
5+
height: 100%;
56
font-size: 14px;
67
@media (--desktop) {
78
font-size: var(--em-base);
89
}
910
}
1011

1112
body {
13+
display: table;
14+
width: 100%;
15+
height: 100%;
1216
margin: 0;
1317
color: var(--black);
1418
line-height: 1.5em;
1519
-webkit-font-smoothing: antialiased;
20+
table-layout: fixed;
1621
}
1722

1823
a {

0 commit comments

Comments
 (0)