hexo-theme-stellar/layout/_partial/sidebar/logo.ejs

16 lines
646 B
Plaintext
Raw Normal View History

2021-02-20 13:09:41 +08:00
<div class='logo-wrap'>
2021-02-24 21:27:31 +08:00
<% if (md_text(theme.sidebar.logo.avatar)) { %>
2021-04-07 22:38:13 +08:00
<a class='avatar' href='<%- url_for(md_link(theme.sidebar.logo.avatar) || "/") %>'>
<% if (theme.style.animated_avatar.animate) { %>
2021-04-20 23:26:24 +08:00
<img no-lazy class='bg' style='opacity:0' src='<%- theme.style.animated_avatar.background %>'/>
2021-04-07 22:38:13 +08:00
<% } %>
<img no-lazy class='avatar' src='<%- md_text(theme.sidebar.logo.avatar) %>'/>
</a>
2021-02-24 21:27:31 +08:00
<% } %>
<% if (md_text(theme.sidebar.logo.title)) { %>
2021-04-07 22:38:13 +08:00
<a class='title' href='<%- url_for(md_link(theme.sidebar.logo.title) || "/") %>'>
<%- md_text(theme.sidebar.logo.title) %>
</a>
2021-02-21 03:13:21 +08:00
<% } %>
2021-02-20 13:09:41 +08:00
</div>