From be21d5c530af9ddf106a113ed7d623e4436f31ca Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 1 Dec 2021 15:12:57 +0800 Subject: [PATCH] Some minor fixes --- layout/_partials/post/post-meta.njk | 16 +++++++--------- source/css/_variables/base.styl | 1 + 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/layout/_partials/post/post-meta.njk b/layout/_partials/post/post-meta.njk index 626f996..c3d3ea4 100644 --- a/layout/_partials/post/post-meta.njk +++ b/layout/_partials/post/post-meta.njk @@ -19,16 +19,14 @@ {%- endif %} - {%- if theme.post_meta.updated_at.enable %} - {%- if not theme.post_meta.updated_at.another_day or date_diff or not theme.post_meta.created_at %} - - - - - {{ __('post.edited') }} - + {%- if theme.post_meta.updated_at.enable and (not theme.post_meta.updated_at.another_day or date_diff or not theme.post_meta.created_at) %} + + - {%- endif %} + + + {%- endif %} {%- if post.categories and post.categories.length and theme.post_meta.categories %} diff --git a/source/css/_variables/base.styl b/source/css/_variables/base.styl index 44a2f4a..5a8ccc6 100644 --- a/source/css/_variables/base.styl +++ b/source/css/_variables/base.styl @@ -119,6 +119,7 @@ $line-height-code-block = 1.6; // Can't be less than 1.3; // Z-index master list // -------------------------------------------------- +// Fix issue https://github.com/next-theme/theme-next-docs/issues/54 $zindex-0 = 5; $zindex-1 = 10; $zindex-2 = 20;