From b481a882fdfb55783618af0c1380faba959f6f11 Mon Sep 17 00:00:00 2001 From: Doge Date: Sun, 9 May 2021 23:50:37 +0800 Subject: Fix layout minor bugs --- layout/index.ejs | 4 +-- layout/post.ejs | 78 +++++++++++++++++++++++++++----------------------------- 2 files changed, 40 insertions(+), 42 deletions(-) (limited to 'layout') diff --git a/layout/index.ejs b/layout/index.ejs index cfb032a..93f15af 100644 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -1,7 +1,7 @@ <% page.posts.each(function (post) { %> -
+
-
+
<% if (post.thumbnail) { %>
diff --git a/layout/post.ejs b/layout/post.ejs index 9c04e82..4a9b2f1 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -13,48 +13,46 @@
<% } %>
-
-

- <%= page.title %> -

- <% if (page.podcast) { %> -
- - <% } %> -
- <%- page.content %> -
-
-
-
- <% if (page.tags) { %> -
- <% (page.tags).forEach(function(item) { %> - # <%= item.name %> - <% }); %> -
- <% } %> -
+

+ <%= page.title %> +

+ <% if (page.podcast) { %> +
+ + <% } %> +
+ <%- page.content %> +
+
+
+
+ <% if (page.tags) { %> +
+ <% (page.tags).forEach(function(item) { %> + # <%= item.name %> + <% }); %> +
+ <% } %>
-
+
-- cgit v1.2.3