Browse Source

Factor out _article-link ejs partial

Preparation to make article link clickable.
master
Perception 4 months ago
parent
commit
705fe1feaa
5 changed files with 12 additions and 10 deletions
  1. +3
    -0
      templates/_article-link.ejs
  2. +5
    -0
      templates/_header.ejs
  3. +1
    -3
      templates/ad-year-month.ejs
  4. +1
    -3
      templates/category.ejs
  5. +2
    -4
      templates/tag.ejs

+ 3
- 0
templates/_article-link.ejs 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
- 0
templates/_header.ejs View File

@ -64,6 +64,11 @@
text-decoration: none;
}
.author {
font-weight: bold;
cursor: crosshair;
}
.more {
margin-top: 1rem;
}


+ 1
- 3
templates/ad-year-month.ejs 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
templates/category.ejs 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
templates/tag.ejs 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>


Loading…
Cancel
Save