diff --git a/_config.yml b/_config.yml index 44b3ca1..699a7b1 100644 --- a/_config.yml +++ b/_config.yml @@ -16,7 +16,7 @@ menu: Home: / Archives: /archives # Category: /category - Tags: /tags/ + # Tags: /tags/ # Links: /links # About: /about # ... @@ -106,3 +106,9 @@ magic: sidebar: enable: false position: right # values: left | right + +# Home page article block display settings +home_article: + tag: true # show tags in article block + tag_limit: 5 # max number of tags shown in article block + category: true # show category in article block \ No newline at end of file diff --git a/layout/home-content.ejs b/layout/home-content.ejs index b093e88..95cda57 100644 --- a/layout/home-content.ejs +++ b/layout/home-content.ejs @@ -24,6 +24,7 @@
<%= date(post.date, 'YYYY-MM-DD') %> <% if (theme.magic.enable === true) { %> + <% if (theme.home_article.category === true) { %> - + + <% } %> + <% if (theme.home_article.tag === true) { %> + + + + + <% } %> <% } %>
<% if (theme.magic.enable === false) { %>