From 07097c8537acf1c05bc13bcab0a6eb87ac00e14b Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sun, 25 Jul 2021 12:39:02 +0800 Subject: [PATCH] Install curlylint (#320) * New element .post-meta-break --- .github/workflows/linter.yml | 7 ++++ layout/_macro/sidebar.njk | 2 +- layout/_partials/post/post-meta.njk | 8 ++--- layout/_partials/sidebar/site-overview.njk | 33 ++++++------------- .../_common/components/post/post-header.styl | 7 +++- 5 files changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 876c226..a24ca97 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -20,3 +20,10 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Python + uses: actions/setup-python@v2 + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install curlylint + - run: curlylint --include .njk layout diff --git a/layout/_macro/sidebar.njk b/layout/_macro/sidebar.njk index 3a654b6..f19a830 100644 --- a/layout/_macro/sidebar.njk +++ b/layout/_macro/sidebar.njk @@ -39,7 +39,7 @@ - + {%- if theme.back2top.enable and theme.back2top.sidebar %}
diff --git a/layout/_partials/post/post-meta.njk b/layout/_partials/post/post-meta.njk index 846091a..626f996 100644 --- a/layout/_partials/post/post-meta.njk +++ b/layout/_partials/post/post-meta.njk @@ -83,11 +83,11 @@ {{- next_inject('postMeta') }} + {%- if theme.symbols_count_time.separated_meta and config.symbols_count_time.symbols and config.symbols_count_time.time %} + + {%- endif %} + {%- if config.symbols_count_time.symbols %} - {%- if theme.symbols_count_time.separated_meta %} -
-
- {%- endif %}