✨ feat: advertisement
This commit is contained in:
9
layout/_partial/ads.ejs
Normal file
9
layout/_partial/ads.ejs
Normal file
@@ -0,0 +1,9 @@
|
||||
<ul class="ads">
|
||||
<% for (var i in theme.ads){ %>
|
||||
<li>
|
||||
<a href="<%= theme.ads[i].url %>">
|
||||
<img src="<%= theme.ads[i].img %>" width="<%= theme.ads[i].width %>" alt="<%=theme.ads[i].title %>">
|
||||
</a>
|
||||
</li>
|
||||
<% } %>
|
||||
</ul>
|
@@ -1,4 +1,7 @@
|
||||
<section class="outer">
|
||||
<% if (theme.ads && theme.ads.length != 0){ %>
|
||||
<%- partial('ads') %>
|
||||
<% } %>
|
||||
<% if (theme.broadcast.enable && pagination == 2){ %>
|
||||
<%- partial('_partial/broadcast') %>
|
||||
<% } %>
|
||||
|
Reference in New Issue
Block a user