diff --git a/templates/_article-link.ejs b/templates/_article-link.ejs new file mode 100644 index 0000000..017ef44 --- /dev/null +++ b/templates/_article-link.ejs @@ -0,0 +1,3 @@ +
+
<%- art.title %> by <%- art.author %>
+
diff --git a/templates/_header.ejs b/templates/_header.ejs index fdf95c2..433938d 100644 --- a/templates/_header.ejs +++ b/templates/_header.ejs @@ -64,6 +64,11 @@ text-decoration: none; } + .author { + font-weight: bold; + cursor: crosshair; + } + .more { margin-top: 1rem; } diff --git a/templates/ad-year-month.ejs b/templates/ad-year-month.ejs index 92a9ae3..8941eb0 100644 --- a/templates/ad-year-month.ejs +++ b/templates/ad-year-month.ejs @@ -17,9 +17,7 @@

<%- art.day %>

<% last = art.day %> <% } %> -
-
<%- art.title %> by <%- art.author %>
-
+ <%- include('_article-link', { art }) -%> <% }) %> diff --git a/templates/category.ejs b/templates/category.ejs index 0e56501..1482396 100644 --- a/templates/category.ejs +++ b/templates/category.ejs @@ -17,9 +17,7 @@

<%- art.month %>

<% last = art.month %> <% } %> -
-
<%- art.title %> by <%- art.author %>
-
+ <%- include('_article-link', { art }) -%> <% }); %> diff --git a/templates/tag.ejs b/templates/tag.ejs index fb3de9e..944eb19 100644 --- a/templates/tag.ejs +++ b/templates/tag.ejs @@ -15,11 +15,9 @@ <% articles.forEach((art) => { %> <% if (last != art.month) { %>

<%- art.month %>

- <% last = art.month %> + <% last = art.month %> <% } %> -
-
<%- art.title %> by <%- art.author %>
-
+ <%- include('_article-link', { art }) -%> <% }); %>