nicenote/themes/material/layout/_partial/daily_pic.ejs
2018-07-13 19:29:56 +08:00

28 lines
1.0 KiB
Plaintext
Executable File

<!-- Daily pic -->
<div class="mdl-card <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %> daily-pic mdl-cell mdl-cell--8-col index-top-block">
<!-- Pic & Slogan -->
<div class="mdl-card__media mdl-color-text--grey-50" style="background-image:url(<%= theme.img.daily_pic %>)">
<p class="index-top-block-slogan"><a href="<%= theme.url.daily_pic %>">
<% if(theme.uiux.slogan) { %>
<% if(Array.isArray(theme.uiux.slogan)) { %>
<%- theme.uiux.slogan.join('<br>') %>
<% } else { %>
<%- theme.uiux.slogan %>
<% } %>
<% } %>
</a></p>
</div>
<!-- Avatar & Name -->
<div class="mdl-card__supporting-text meta mdl-color-text--grey-600">
<!-- Author Avatar -->
<div id="author-avatar">
<img src="<%= theme.img.avatar %>" width="32px" height="32px" alt="avatar">
</div>
<div>
<strong><%= config.author %></strong>
</div>
</div>
</div>