diff --git a/layout/article-content.ejs b/layout/article-content.ejs index 275dd06..6016088 100644 --- a/layout/article-content.ejs +++ b/layout/article-content.ejs @@ -40,6 +40,16 @@ <% } %> + <% if (page.tags.length) { %> + + <% } %> + <% if (page.prev || page.next) { %>
<% if (page.prev) { %> diff --git a/source/css/layout/_partial/article-meta-info.styl b/source/css/layout/_partial/article-meta-info.styl index c702a39..792dec8 100644 --- a/source/css/layout/_partial/article-meta-info.styl +++ b/source/css/layout/_partial/article-meta-info.styl @@ -27,18 +27,15 @@ } } + .article-min2read, .article-tags { + +keep-tablet() { + display: none; + } + } - .article-wordcount, .article-tags { + .article-wordcount { +keep-mobile() { display: none; } } - - .article-min2read, .article-categories { - - +keep-tablet() { - display: none; - } - - } } diff --git a/source/css/layout/article-content.styl b/source/css/layout/article-content.styl index 6337bb8..0be22b4 100644 --- a/source/css/layout/article-content.styl +++ b/source/css/layout/article-content.styl @@ -103,11 +103,28 @@ $article-title-font-size = 1.6rem; color: var(--default-text-color); } + + .post-tags-box { + display: none; + margin-top: 1.3rem; + justify-content: center; + font-size: 1.1rem; + + +keep-tablet() { + display: flex; + } + + .tag-item { + margin: 0 0.25rem; + } + } + .post-copyright-info { margin-top: $component-spacing-value; width: 100%; } + .article-nav { height: 40px; margin-top: $component-spacing-value;