Skip to content

Commit

Permalink
Merge pull request #160 from simonsmh/sidebar_footer
Browse files Browse the repository at this point in the history
feat(sidebar_footer_image): add sidebar footer image config
  • Loading branch information
pidupuis committed Jan 22, 2017
2 parents 6bf04a1 + 341c444 commit 7f08939
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
5 changes: 4 additions & 1 deletion _config.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ img:
daily_pic: "/img/daily_pic.png"
sidebar_header: "/img/sidebar_header.png"
footerico: "/img/footer/footer_ico-"
#upyun_logo: "/img/upyun_logo.png"
random_thumbnail: "/img/random/material-"
footer_image:
#upyun_logo:
#link: "https://www.upyun.com/"
#src: "/img/upyun_logo.png"

# Custom Fonts
fonts: Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif
Expand Down
7 changes: 7 additions & 0 deletions layout/_partial/sidebar-footer_image.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<% for (var i in theme.img.footer_image) { %>
<span id="footer-image">
<a href="<%= theme.img.footer_image[i].link %>" target="_blank" title="<%= i %>">
<img src="<%= theme.img.footer_image[i].src %>" alt="<%= i %>">
</a>
</span>
<% } %>
7 changes: 0 additions & 7 deletions layout/_partial/sidebar-sponsor.ejs

This file was deleted.

4 changes: 2 additions & 2 deletions layout/_partial/sidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<%- partial('_partial/sidebar-footer') %>
</div>

<!-- Sidebar Sponsor -->
<%- partial('_partial/sidebar-sponsor') %>
<!-- Sidebar Image -->
<%- partial('_partial/sidebar-footer_image') %>
</aside>
4 changes: 2 additions & 2 deletions source/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2298,8 +2298,8 @@ a {
margin-bottom: 55px;
}

#scheme-Paradox #upyun-logo {
padding-left: 16px;
#scheme-Paradox #footer-image {
padding-left: 8px;
position: relative;
}

Expand Down
2 changes: 1 addition & 1 deletion source/css/style.min.css

Large diffs are not rendered by default.

0 comments on commit 7f08939

Please sign in to comment.