Fix variables

This commit is contained in:
lostinlight 2018-09-02 13:57:21 +00:00
parent e95841059a
commit 2e0647ae59
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,3 @@
<%
const network = page.network;
const data = site.data[network].data;
@ -102,13 +101,13 @@
</div>
<% } %>
<% if (data.stars) { %>
<% if (data.notable) { %>
<div class="section u-block with-image">
<h4><%- __('stars') %></h4>
<ul class="section-list">
<% for (item in data.stars) { %>
<% for (item in data.notable) { %>
<li class="u-inline">
<a href="<%= data.stars[item].url %>" title="<%= data.stars[item].name %>"><img src="<%= data.stars[item].avatar %>" alt="user"></a>
<a href="<%= data.notable[item].url %>" title="<%= data.notable[item].name %>"><img src="<%= data.notable[item].avatar %>" alt="user"></a>
</li>
<% } %>
</ul>