From ef9166a92607093dea593653a9977fba40d82ad3 Mon Sep 17 00:00:00 2001 From: Doge Date: Fri, 21 May 2021 01:53:08 +0800 Subject: Add header adjustment with autoscroll --- layout/_partial/header.ejs | 12 +++++++++--- layout/post.ejs | 12 +++++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'layout') diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 34097f7..a9d9dbd 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -1,7 +1,7 @@ -<% if (is_post()) { %> -
+<% if (is_home()) { %> +
<% } else { %> -
+
<% } %>
+ + <% if (is_home()) { %> +
+ +
+ <% } %>
\ No newline at end of file diff --git a/layout/post.ejs b/layout/post.ejs index 9d9c8df..1419b70 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -1,6 +1,16 @@
-
+
+ <% if (theme.header.autoscroll) { %> + + <% } %> <% if (page.thumbnail) { %>
-- cgit v1.2.3