aboutsummaryrefslogtreecommitdiff
path: root/templates/index.ejs
blob: b369862b10764508adc0266dae2a5c29bca7cee7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<% if (typeof banner !== "undefined") { %>
    <div class="banner"><%= banner %></div>
<% } %>

<% articles.forEach(function (article) { %>
    <div class="article">
        <div class="title">
            <h1><a href="<%= article.route %>"><%= article.title %></a></h1>
        </div>

        <div class="content">
            <p class="listing">
                <%- (article.description || article.summary).replace(/<.?p>/g, "") %>
                <a href="<%= article.route %>">
                    <span aria-hidden="true">read more &raquo;</span>
                    <span class="sr-only">continue reading this article</span>
                </a>
            </p>
        </div>
    </div>
<% }) %>