Skip to content

Commit

Permalink
Merge pull request #545 from ysc3839/master
Browse files Browse the repository at this point in the history
Add option 'hide_license', 'hide_share' and 'hide_post_info'.
  • Loading branch information
cubesky committed Oct 6, 2017
2 parents 3084fdd + 4d67995 commit f5e4164
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion layout/_partial/Paradox-post-info.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@
<% } %>

<!-- Share -->
<%- partial('_partial/post-info-share') %>
<% if(page.hide_share !== true) { %>
<%- partial('_partial/post-info-share') %>
<% } %>
</div>
2 changes: 1 addition & 1 deletion layout/_partial/post-content.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="post-content" class="mdl-color-text--grey-700 mdl-card__supporting-text fade out">
<% if(theme.scheme === 'Paradox') { %>
<%- page.content %>
<% if (theme.license || page.license) { %>
<% if (page.hide_license !== true && theme.license || page.license) { %>
<blockquote style="margin: 2em 0 0;padding: 0.5em 1em;border-left: 3px solid #F44336;background-color: #F5F5F5;list-style: none;">
<p><strong>
<% if (page.license) { %>
Expand Down
4 changes: 2 additions & 2 deletions layout/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
<!-- Post Header(Thumbnail & Title) -->
<%- partial('_partial/post-header') %>
<% if(theme.scheme === 'Paradox') { %>
<% if(page.hide_post_info !== true && theme.scheme === 'Paradox') { %>
<!-- Paradox Post Info -->
<%- partial('_partial/Paradox-post-info') %>
<% } %>
<!-- Post Content -->
<%- partial('_partial/post-content') %>
<% if(theme.scheme === 'Isolation') { %>
<% if(page.hide_post_info !== true && theme.scheme === 'Isolation') { %>
<!-- Paradox Post Info -->
<%- partial('_partial/Isolation-post-info') %>
<% } %>
Expand Down

0 comments on commit f5e4164

Please sign in to comment.