From 23d9163a2dc2a329a6a150d0be3bb528d8fd096d Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Mon, 17 Aug 2020 10:46:46 +0800 Subject: [PATCH] Refactor post-footer using flex layout --- layout/_macro/post.njk | 35 ++++++++-------- layout/_partials/post/post-copyright.njk | 4 +- .../_common/components/post/post-footer.styl | 41 +++++++++++++++++++ .../_common/components/post/post-tags.styl | 13 ------ source/css/_common/components/post/post.styl | 21 +--------- 5 files changed, 61 insertions(+), 53 deletions(-) create mode 100644 source/css/_common/components/post/post-footer.styl delete mode 100644 source/css/_common/components/post/post-tags.styl diff --git a/layout/_macro/post.njk b/layout/_macro/post.njk index b1c0269..61835dc 100644 --- a/layout/_macro/post.njk +++ b/layout/_macro/post.njk @@ -201,22 +201,24 @@ {{ partial('_partials/post/post-related.njk') }} {%- endif %} - {%- if not is_index %} - {{- next_inject('postBodyEnd') }} + {######################} {### END POST BLOCK ###} diff --git a/layout/_partials/post/post-copyright.njk b/layout/_partials/post/post-copyright.njk index 2e7d575..9c25edd 100644 --- a/layout/_partials/post/post-copyright.njk +++ b/layout/_partials/post/post-copyright.njk @@ -1,8 +1,8 @@ {%- set ccIcon = '' %} {%- set ccText = theme.creative_commons.license | upper %} -
-