parent
fdd6f793c5
commit
a10105efd3
17 changed files with 228 additions and 175 deletions
@ -1,16 +0,0 @@ |
||||
<section class='widget <%- theme.style.shadow.card ? 'card-shadow' : '' %> <%- theme.style.blur && theme.style.blur.widget ? 'widget-blur' : '' %> <%- item.class %>'> |
||||
<%- partial('header', {item: item}) %> |
||||
<div class='content'> |
||||
<% if (item.fancybox == true) { %> |
||||
<fancybox> |
||||
<% (item.images||[]).forEach(function(url){ %> |
||||
<img src='<%- url_for(url) %>' height='<%- item.height %>'> |
||||
<% }) %> |
||||
</fancybox> |
||||
<% } else { %> |
||||
<% (item.images||[]).forEach(function(url){ %> |
||||
<img src='<%- url_for(url) %>' height='<%- item.height %>'> |
||||
<% }) %> |
||||
<% } %> |
||||
</div> |
||||
</section> |
@ -1,26 +1,9 @@ |
||||
<header> |
||||
<div> |
||||
<% if (item.backurl) { %> |
||||
<a href='<%- item.backurl %>'><i class="<%- item.icon %> fa-fw" aria-hidden="true"></i><span class='name'><%- item.title %></span></a> |
||||
<% if (item.header) { %> |
||||
<header> |
||||
<% if (item.header.url) { %> |
||||
<a href='<%- item.header.url %>'><i class="<%- item.header.icon %> fa-fw" aria-hidden="true"></i><span class='name'><%- item.header.title %></span></a> |
||||
<% } else { %> |
||||
<i class="<%- item.icon %> fa-fw" aria-hidden="true"></i><span class='name'><%- item.title %></span> |
||||
<i class="<%- item.header.icon %> fa-fw" aria-hidden="true"></i><span class='name'><%- item.header.title %></span> |
||||
<% } %> |
||||
|
||||
</div> |
||||
<% if (item.class == 'toc') { %> |
||||
<!-- <div class='wrapper'><a class="s-toc rightBtn" rel="external nofollow noopener noreferrer" href="javascript:void(0)"><i class="fas fa-thumbtack fa-fw"></i></a></div> --> |
||||
<% } else if(item.more && item.more.url) { %> |
||||
<a class="rightBtn<%- item.more.animate ? ' ' + item.more.animate : '' %>" |
||||
<% if (item.more.rel) { %> |
||||
rel="<%- item.more.rel %>" |
||||
<% } else { %> |
||||
rel="external nofollow noopener noreferrer" |
||||
<% } %> |
||||
<% if (item.more.target) { %> |
||||
target="<%- item.more.target %>" |
||||
<% } %> |
||||
href="<%- url_for(item.more.url) %>" |
||||
title="<%- item.more.url %>"> |
||||
<i class="<%- item.more.icon?item.more.icon:'fas fa-question-circle' %> fa-fw"></i></a> |
||||
<% } %> |
||||
</header> |
||||
</header> |
||||
<% } %> |
||||
|
@ -0,0 +1,28 @@ |
||||
<% |
||||
var plats = []; |
||||
if (item.display) { |
||||
item.display.forEach(function(plat){ |
||||
plats.push(plat); |
||||
}); |
||||
} else { |
||||
plats = ['desktop', 'mobile']; |
||||
} |
||||
%> |
||||
<section class="widget <%- theme.style.shadow.card ? 'card-shadow' : '' %> <%- theme.style.blur && theme.style.blur.widget ? 'widget-blur' : '' %> <%- item.class %> <%- plats.join(' ') %>"> |
||||
<%- partial('header', {item: item}) %> |
||||
<div class='content article-entry'> |
||||
<% (item.images||[]).forEach(function(url){ %> |
||||
<% if (item.fancybox == true) { %> |
||||
<fancybox><img src='<%- url_for(url) %>' |
||||
<% if (item.height) { %> |
||||
height='<%- item.height %>' |
||||
<% } %>></fancybox> |
||||
<% } else { %> |
||||
<img src='<%- url_for(url) %>' |
||||
<% if (item.height) { %> |
||||
height='<%- item.height %>' |
||||
<% } %>> |
||||
<% } %> |
||||
<% }) %> |
||||
</div> |
||||
</section> |
@ -1,10 +1,18 @@ |
||||
<section class='widget <%- theme.style.shadow.card ? 'card-shadow' : '' %> <%- theme.style.blur && theme.style.blur.widget ? 'widget-blur' : '' %> <%- item.class?item.class:'text' %>'> |
||||
<% |
||||
var plats = []; |
||||
if (item.display) { |
||||
item.display.forEach(function(plat){ |
||||
plats.push(plat); |
||||
}); |
||||
} else { |
||||
plats = ['desktop', 'mobile']; |
||||
} |
||||
%> |
||||
<section class="widget <%- theme.style.shadow.card ? 'card-shadow' : '' %> <%- theme.style.blur && theme.style.blur.widget ? 'widget-blur' : '' %> <%- item.class %> <%- plats.join(' ') %>"> |
||||
<%- partial('header', {item: item}) %> |
||||
<div class='content'> |
||||
<% (item.content||[]).forEach(function(row){ %> |
||||
<p> |
||||
<%- markdown(row) %> |
||||
</p> |
||||
<%- markdown(row) %> |
||||
<% }) %> |
||||
</div> |
||||
</section> |
||||
|
Loading…
Reference in new issue