From e67890a683253cdb5621bdf90d9520bc17f10ec9 Mon Sep 17 00:00:00 2001 From: XPoet Date: Fri, 20 Mar 2020 10:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E7=A6=BB=E5=87=BA=20article-meta-info?= =?UTF-8?q?=20=E7=BB=84=E4=BB=B6=EF=BC=8C=E4=BC=98=E5=8C=96=20CSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/common/article-meta-info.ejs | 34 ++++++++++++++ layout/common/article-post.ejs | 24 ++-------- layout/common/home-post.ejs | 38 +--------------- source/css/common/article-meta-info.styl | 26 +++++++++++ source/css/common/home-post.styl | 58 ++---------------------- source/css/style.styl | 1 + 6 files changed, 70 insertions(+), 111 deletions(-) create mode 100644 layout/common/article-meta-info.ejs create mode 100644 source/css/common/article-meta-info.styl diff --git a/layout/common/article-meta-info.ejs b/layout/common/article-meta-info.ejs new file mode 100644 index 0000000..c205b67 --- /dev/null +++ b/layout/common/article-meta-info.ejs @@ -0,0 +1,34 @@ +
+ + + + + <% if (articleData.categories.length) { %> + + <% } %> + + + <% if (articleData.tags.length) { %> + + <% } %> +
\ No newline at end of file diff --git a/layout/common/article-post.ejs b/layout/common/article-post.ejs index 23ae432..4e05b69 100644 --- a/layout/common/article-post.ejs +++ b/layout/common/article-post.ejs @@ -1,34 +1,18 @@ <% if (is_post()) { %> +

<%= page.title %>

+ +
<%- page.content %>
-
<% if (page.prev) { %>
diff --git a/layout/common/home-post.ejs b/layout/common/home-post.ejs index 7dc67f6..d77a059 100644 --- a/layout/common/home-post.ejs +++ b/layout/common/home-post.ejs @@ -15,42 +15,8 @@ <%- truncate(strip_html(post.content), {length: 80}) %>
- -