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

53 lines
1.6 KiB
Plaintext
Executable File

<!-- Post TOC -->
<% if( (page.toc === true) || (is_post() && page.toc !== false) ) { %>
<%- partial('_partial/toc_button') %>
<% } %>
<!-- Layouts -->
<% if(page.layout === 'tags') { %>
<!-- Tags Cloud -->
<%- partial('_widget/page-tagcloud') %>
<% } else if(page.layout === 'links') { %>
<!-- Single Links Page -->
<%- partial('_widget/page-links') %>
<% } else if(page.layout === 'timeline') { %>
<!-- Single Timeline Page -->
<%- partial('_widget/page-timeline') %>
<% } else { %>
<!-- Post Module -->
<div class="material-post_container">
<div class="material-post mdl-grid">
<div class="mdl-card mdl-shadow--4dp mdl-cell mdl-cell--12-col">
<!-- Post Header(Thumbnail & Title) -->
<%- partial('_partial/post-header') %>
<% if(theme.scheme === 'Paradox') { %>
<!-- Paradox Post Info -->
<%- partial('_partial/Paradox-post-info') %>
<% } %>
<!-- Post Content -->
<%- partial('_partial/post-content') %>
<% if(theme.scheme === 'Isolation') { %>
<!-- Paradox Post Info -->
<%- partial('_partial/Isolation-post-info') %>
<% } %>
<!-- Post Comments -->
<% if(page.comment !== false) { %>
<%- partial('_partial/comment') %>
<% } %>
</div>
<!-- Post Prev & Next Nav -->
<%- partial('_partial/post-nav') %>
</div>
</div>
<% } %>