Factor out _article-link ejs partial
Preparation to make article link clickable.
This commit is contained in:
@@ -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>
|
||||
@@ -64,6 +64,11 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.author {
|
||||
font-weight: bold;
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.more {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user