Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
yanm1ng committed Sep 4, 2017
2 parents 1e9f81c + 1365215 commit 0bdd328
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
5 changes: 4 additions & 1 deletion layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@
<script src="//cdn.bootcss.com/geopattern/1.2.3/js/geopattern.min.js"></script>
<script src="//cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script>
<%- js(['js/qrious', 'js/gitment']) %>
</head>
</head>
<div class="wechat-share">
<img src="/css/images/logo.png" />
</div>
10 changes: 9 additions & 1 deletion layout/about.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
</span>
</a>
<% } %>
<% if (config.douban_username) { %>
<a class="icon-douban" href="https://www.douban.com/people/<%- config.douban_username %>" target="_blank">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-stack-1x fa-inverse"></i>
</span>
</a>
<% } %>
</section>
</div>

Expand All @@ -53,4 +61,4 @@
})
}
})();
</script>
</script>
2 changes: 1 addition & 1 deletion layout/page.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
(function () {
var url = '<%= config.url %>/<%= page.path %>';
var banner = '<%= page.banner %>'
if (banner) {
if (banner !== 'undefined') {
$('#article-banner').css({
'background-image': 'url(' + banner + ')'
})
Expand Down
4 changes: 3 additions & 1 deletion source/css/_partial/about.styl
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@
.icon-zhihu
color: #0767c8
.icon-twitter
color: #2aa9e0
color: #2aa9e0
.icon-douban
color: #00B51D
8 changes: 8 additions & 0 deletions source/css/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ p
pre
overflow-x: auto

.wechat-share
width: 0
height: 0
overflow: hidden
img
width: 400px
height 400px

.app-body
padding: 1em
margin: 0 auto
Expand Down

0 comments on commit 0bdd328

Please sign in to comment.