summaryrefslogtreecommitdiff
path: root/layout/_partial/header.ejs
blob: 1ef4ef81090ee9bb210a326ecd540688503b625d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<header class="header">
    <div class="header-title">
        <%= config.title %>
    </div>
    <div class="header-desc">
        <%= config.description %> 
    </div>
    <nav class="header-navbar">
        <ul class="header-menu">
            <% for (let index in theme.navbar) { %>
                <% 
                    const mapping = theme.navbar[index];
                    const link = mapping[0];
                    const favicon = mapping[1];
                    let outter = link.startsWith("https://") ? true : false;
                %>
                <a href="<%= link %>" target="<%= outter ? '_blank' : '_self' %>">
                    <i class="<%= favicon %>"></i>
                </a>
            <% } %>
        </ul>
    </nav>
</header>