From 0b552cbbf605b897c96e5a09e3a339f8a0955dc3 Mon Sep 17 00:00:00 2001 From: Doge Date: Sat, 8 May 2021 16:36:20 +0800 Subject: Draw header page --- layout/_partial/head.ejs | 2 +- layout/_partial/header.ejs | 87 +++++++++++++++++++++++++++++----------------- 2 files changed, 57 insertions(+), 32 deletions(-) (limited to 'layout') diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 3d4ee79..d20850c 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -21,6 +21,6 @@ - + <%- css("css/style.css") %> \ No newline at end of file diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 32d2d2a..f7fef30 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -1,33 +1,58 @@ -
-
-
- <%= config.title %> -
-
- <% for (let item of theme.menubar) { %> - <%= item[1] %> - <% } %> -
+
+
+
- <% if (theme.logo) { %> - - <% } %> -
- <%= config.description %> + +
+
+

+ <% if (theme.logo) { %> + + <% } else { %> + + <%= config.title %> + + <% } %> +

+

+ <%- config.description %> +

    + <% 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; + %> + + + + <% } %> +
+

+
- -
\ No newline at end of file + \ No newline at end of file -- cgit v1.2.3