Skip to content

Commit

Permalink
v1.0.0 release
Browse files Browse the repository at this point in the history
1. change the page indicator.
2. add livere comment support.
  • Loading branch information
D0n9X1n committed Apr 28, 2017
1 parent bb14010 commit bd092d0
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 17 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Yet, just another blog theme for Hexo, based on hexo-theme-apollo.

### Features
+ **LiveRe comment service support.**
+ Code highlight.
+ Built-in hexo-tag-cloud support.
+ More comfortable with large screens.
Expand Down
1 change: 1 addition & 0 deletions _config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ logo: https://avatars1.githubusercontent.com/u/3142935?v=3&s=466 or file
# e.g disqus: seansun
disqus:
duoshuo:
livere:

# Analytics
# google-analytics:
Expand Down
12 changes: 3 additions & 9 deletions layout/mixins/paginator.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@ mixin home()
- var prev = page.prev_link
- var next = page.next_link
.paginator
if page.prev
a.prev(href=url_for(prev))!= __('prev')
if page.next
a.next(href=url_for(next))!= __('next')
!= paginator({prev_text: __('PREV'), next_text: __('NEXT')})

mixin post()
- var prev = page.prev ? page.prev.path : false;
- var next = page.next ? page.next.path : false;
- var next = page.next ? page.next.path : false;
.paginator
if prev
a.prev(href=url_for(prev))!= __('prev_post')
if next
a.next(href=url_for(next))!= __('next_post')
!= paginator({prev_text: __('PREV'), next_text: __('NEXT')})
2 changes: 1 addition & 1 deletion layout/partial/comment.jade
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if theme.disqus
})();
script(id='dsq-count-scr' src='//#{theme.disqus}.disqus.com/count.js' async)

if theme.LivereTower
if theme.livere
<div id="lv-container" data-id="city" data-uid="#{theme.livere}">
script.
(function(d, s) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-gandalfr",
"version": "0.0.8",
"version": "1.0.0",
"description": "Yet, just another blog theme for Hexo, based on hexo-theme-apollo",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion source/css/gandalfr.css

Large diffs are not rendered by default.

22 changes: 17 additions & 5 deletions source/scss/_partial/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,30 @@
text-align: center;
.prev, .next {
display: inline-block;
margin: 0 4px;
padding: 4px 12px;
border-radius: 4px;
padding: 4px 20px;
border-radius: 10px;
border-bottom: 4px solid #3aa373;
font-size: 14px;
color: #fff;
background-color: #4fc08d;
&:hover {
background-color: #22bd77;
}
width: 20%;
font-size: 15px;
}
.prev {
float: left;
}
.next {
float: right;
}
.page-number {
margin: 20px;
font-size: 20px;
color: #22bd77;
padding: 10px;
}
.current {
color: #222 !important;
}
}

Expand Down

0 comments on commit bd092d0

Please sign in to comment.