blob: e96f62be469d3329303908fd23cc492c75cd39db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<header class="header">
<div class="header-title">
<%= config.title %>
</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>
|