Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sidebar_footer_image): add sidebar footer image config #160

Merged
merged 4 commits into from
Jan 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.