Factor out _article-link ejs partial

Preparation to make article link clickable.
This commit is contained in:
2021-01-02 15:50:49 -08:00
parent fb3a078b7c
commit 705fe1feaa
5 changed files with 12 additions and 10 deletions
+3
View File
@@ -0,0 +1,3 @@
<div class="article-link">
<h6><a href="https://dailystormer.su<%- art.slug %>"><%- art.title %></a> by <span class="author"><%- art.author %></span></h6>
</div>
+5
View File
@@ -64,6 +64,11 @@
text-decoration: none;
}
.author {
font-weight: bold;
cursor: crosshair;
}
.more {
margin-top: 1rem;
}
+1 -3
View File
@@ -17,9 +17,7 @@
<h4><%- art.day %></h4>
<% last = art.day %>
<% } %>
<div class="article-link">
<h6><a href="https://dailystormer.su<%- art.slug %>"><%- art.title %></a> by <%- art.author %></h6>
</div>
<%- include('_article-link', { art }) -%>
<% }) %>
</div>
</div>
+1 -3
View File
@@ -17,9 +17,7 @@
<h4><%- art.month %></h4>
<% last = art.month %>
<% } %>
<div class="article-link">
<h6><a href="https://dailystormer.su<%- art.slug %>"><%- art.title %></a> by <%- art.author %></h6>
</div>
<%- include('_article-link', { art }) -%>
<% }); %>
</div>
</div>
+2 -4
View File
@@ -15,11 +15,9 @@
<% articles.forEach((art) => { %>
<% if (last != art.month) { %>
<h4><%- art.month %></h4>
<% last = art.month %>
<% last = art.month %>
<% } %>
<div class="article-link">
<h6><a href="https://dailystormer.su<%- art.slug %>"><%- art.title %></a> by <%- art.author %></h6>
</div>
<%- include('_article-link', { art }) -%>
<% }); %>
</div>
</div>