<% 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}) %>
-
-
-
-
- <%= date(post.date, 'YYYY-MM-DD HH:MM:SS') %>
-
-
-
- <% if (post.categories.length) { %>
-
-
-
- <% post.categories.forEach((category, i) => { %>
- -
- <%= i === 0 ? '' : '| ' %><%= category.name %>
-
- <% }); %>
-
-
- <% } %>
-
-
- <% if (post.tags.length) { %>
-
-
-
- <% post.tags.forEach((tag, i) => { %>
- -
- <%= i === 0 ? '' : '| ' %><%= tag.name %>
-
- <% }); %>
-
-
- <% } %>
+
+ <%- partial('article-meta-info', {articleData: post, index: true}) %>
<% }) %>
diff --git a/source/css/common/article-meta-info.styl b/source/css/common/article-meta-info.styl
new file mode 100644
index 0000000..44332dd
--- /dev/null
+++ b/source/css/common/article-meta-info.styl
@@ -0,0 +1,26 @@
+.article-meta-info {
+ color: #bbbbbb;
+ font-size: 12px;
+
+ .article-meta-item {
+ margin-right: 10px;
+ }
+
+ .article-tags, .article-categories {
+ display: inline;
+
+ ul, li {
+ display: inline;
+ }
+
+ a {
+ text-decoration: none;
+ color: rgba(0, 0, 0, 0.44);
+ font-weight: 400;
+
+ &:hover {
+ text-decoration: none;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/source/css/common/home-post.styl b/source/css/common/home-post.styl
index 0dd7659..48308b8 100644
--- a/source/css/common/home-post.styl
+++ b/source/css/common/home-post.styl
@@ -5,6 +5,8 @@
.article-post-item {
margin-bottom 30px
+ padding-bottom 20px
+ border-bottom: 1px solid #f2f2f2;
.article-post-title {
h1 {
@@ -50,63 +52,9 @@
.article-post-content {
padding 15px 0
-
- a {
- text-decoration: none;
- letter-spacing: 1px;
- color: #4786D6;
- }
-
- a:hover {
- color: #2F69B3;
- }
-
- h3 {
- color: #5F5F5F;
- font-size: 22px;
- font-weight: 600;
- }
-
- h4 {
- color: #5F5F5F;
- font-size: 16px;
- }
+ line-height 26px
}
-
- .article-meta {
- padding-bottom: 20px;
- border-bottom: 1px solid #f2f2f2;
- color: #bbbbbb;
- font-size: 12px;
- position relative
-
- .article-item {
- margin-right: 15px;
- }
-
- .article-tags, .article-categories {
- display: inline;
-
- ul, li {
- display: inline;
- }
-
- li {
-
- }
-
- a {
- text-decoration: none;
- color: rgba(0, 0, 0, 0.44);
- font-weight: 400;
-
- &:hover {
- text-decoration: none;
- }
- }
- }
- }
}
}
}
diff --git a/source/css/style.styl b/source/css/style.styl
index cb264ee..eead4ff 100644
--- a/source/css/style.styl
+++ b/source/css/style.styl
@@ -9,6 +9,7 @@
@import "common/home-post.styl"
@import "common/archive-post.styl"
@import "common/article-post.styl"
+@import "common/article-meta-info.styl"
@import "common/category-post.styl"
@import "common/tag-post.styl"
@import "common/site-info.styl"