Fix variables
This commit is contained in:
parent
e95841059a
commit
2e0647ae59
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
<%
|
<%
|
||||||
const network = page.network;
|
const network = page.network;
|
||||||
const data = site.data[network].data;
|
const data = site.data[network].data;
|
||||||
|
@ -102,13 +101,13 @@
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<% if (data.stars) { %>
|
<% if (data.notable) { %>
|
||||||
<div class="section u-block with-image">
|
<div class="section u-block with-image">
|
||||||
<h4><%- __('stars') %></h4>
|
<h4><%- __('stars') %></h4>
|
||||||
<ul class="section-list">
|
<ul class="section-list">
|
||||||
<% for (item in data.stars) { %>
|
<% for (item in data.notable) { %>
|
||||||
<li class="u-inline">
|
<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>
|
</li>
|
||||||
<% } %>
|
<% } %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue