master
xaoxuu 4 years ago
parent aadbcd8f65
commit 9484ca931a
  1. 2
      layout/_widget/list.ejs
  2. 7
      layout/_widget/references.ejs

@ -4,7 +4,7 @@
<div class='content'>
<ul class="list entry navigation">
<% (item.rows||[]).forEach(function(row){ %>
<li><a class="flat-box" title="<%- url_for(row.url) %>" href="<%- url_for(row.url) %>"
<li><a class="flat-box" title="<%- row.url %>" href="<%- row.url %>"
<% if (row.rel) { %>
rel="<%- row.rel %>"
<% } %>

@ -1,6 +1,11 @@
<%
if (item.rows == undefined) {
item.rows = page.references;
item.rows = new Array();
(page.references||[]).forEach(function(ref) {
if (ref.name || ref.url) {
item.rows.push(ref);
}
})
}
%>

Loading…
Cancel
Save