From 8d17e308c8b43f12e11ed6b5a82f81e8dbcdd259 Mon Sep 17 00:00:00 2001 From: Doge Date: Fri, 7 May 2021 15:43:43 +0800 Subject: Change header layout --- _config.yml | 6 +++++- layout/_partial/header.ejs | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index cd90fb0..14e03eb 100644 --- a/_config.yml +++ b/_config.yml @@ -7,4 +7,8 @@ highlight: navbar: - ['https://google.com', 'fa fa-google'] - ['https://twitter.com', 'fa fa-twitter'] - - ['/feed', 'fa fa-rss'] \ No newline at end of file + - ['/feed', 'fa fa-rss'] +menubar: + - ['/about', 'About'] + - ['/archives', 'Archives'] +logo: false \ No newline at end of file diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 1ef4ef8..32d2d2a 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -1,7 +1,17 @@
-
- <%= config.title %> +
+
+ <%= config.title %> +
+
+ <% for (let item of theme.menubar) { %> + <%= item[1] %> + <% } %> +
+ <% if (theme.logo) { %> + + <% } %>
<%= config.description %>
-- cgit v1.2.3