diff options
author | Doge <[email protected]> | 2021-05-06 13:14:51 +0800 |
---|---|---|
committer | Doge <[email protected]> | 2021-05-06 13:14:51 +0800 |
commit | 1e2b85ff51e0458878b77c9a21cf492cf120b02c (patch) | |
tree | 313164378100306811c69179eb166d372f8319a6 /layout/_partial/header.ejs | |
parent | 14f00dc7134dfb712bfb09e9b341f709168bae56 (diff) | |
download | chromate-1e2b85ff51e0458878b77c9a21cf492cf120b02c.tar.gz chromate-1e2b85ff51e0458878b77c9a21cf492cf120b02c.tar.bz2 chromate-1e2b85ff51e0458878b77c9a21cf492cf120b02c.zip |
Making progress
Diffstat (limited to 'layout/_partial/header.ejs')
-rw-r--r-- | layout/_partial/header.ejs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index e69de29..e96f62b 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -0,0 +1,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>
\ No newline at end of file |