Skip to content

Commit

Permalink
Fixed issue#41 and some ui
Browse files Browse the repository at this point in the history
  • Loading branch information
yanm1ng committed Sep 28, 2017
1 parent 819d298 commit 2d198e2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
7 changes: 6 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ catalog: true
# donate
donate: true

# gitment
# comment
# you can set gitment or uyan

comment: gitment

# gitment config
gitment_owner: yanm1ng
gitment_repo: yanm1ng.github.io
gitment_oauth_id: 0f87e490e00ee3fd87ef
Expand Down
6 changes: 4 additions & 2 deletions layout/page.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@
<p class="notice">扫描二维码,分享此文章</p>
</div>
<!-- 二维码 END -->
<% if (theme.gitment_owner) { %>
<% if (theme.comment === 'gitment') { %>
<!-- Gitment START -->
<div id="comments"></div>
<!-- Gitment END -->
<% } else { %>
<% } else if (theme.comment === 'uyan') { %>
<!-- UY START -->
<div id="uyan_frame"></div>
<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js"></script>
<!-- UY END -->
<% } else { %>
<!-- No Comment -->
<% } %>
</article>
<!-- Article END -->
Expand Down
3 changes: 2 additions & 1 deletion source/css/_partial/footer.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
font-size: 0.9em

.copyright
color: color-gray
color: color-gray
line-height: 1.5
6 changes: 5 additions & 1 deletion source/css/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ h2.article-head
box-sizing: border-box
top: 0
left: 0
padding: 80px 20px 25px 20px
padding: 100px 20px 25px 20px
text-align: center
position: relative
background-repeat: no-repeat
Expand Down Expand Up @@ -164,6 +164,7 @@ h2.article-head

.post-article
margin-top: 0
width: 100%

.money-like
padding: 2em 0 3em
Expand Down Expand Up @@ -241,6 +242,9 @@ h2.article-head
padding: 5px
box-shadow: 0 0 1px color-shadow

#uyan_frame
margin-top: 20px

.image-view-wrap
position: fixed
top: 0
Expand Down

0 comments on commit 2d198e2

Please sign in to comment.