From b3769198ea6bd8af091a43e3c6cc6e314b041ac6 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Mon, 16 Nov 2020 00:38:21 +0800 Subject: [PATCH] Fix .post-sticky-flag margin --- _config.yml | 4 ++-- layout/_macro/post.njk | 4 ++-- source/css/_common/components/post/post-header.styl | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 475f136..e83f6eb 100644 --- a/_config.yml +++ b/_config.yml @@ -9,7 +9,7 @@ # See: https://theme-next.js.org/docs/theme-settings/ # --------------------------------------------------------------- -# Allow to cache content generation. Introduced in NexT v6.0.0. +# Allow to cache content generation. cache: enable: true @@ -60,7 +60,7 @@ favicon: custom_logo: #/uploads/custom-logo.jpg # Creative Commons 4.0 International License. -# See: https://creativecommons.org/share-your-work/licensing-types-examples +# See: https://creativecommons.org/about/cclicenses/ # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org diff --git a/layout/_macro/post.njk b/layout/_macro/post.njk index 891be3e..ac40839 100644 --- a/layout/_macro/post.njk +++ b/layout/_macro/post.njk @@ -30,14 +30,14 @@ {%- endif %} {%- set postTitleIcon = '' %} {%- set postText = post.title or post.link %} - {{ next_url(post.link, postText + postTitleIcon, {class: 'post-title-link post-title-link-external', itemprop: 'url'}) }} + {{- next_url(post.link, postText + postTitleIcon, {class: 'post-title-link post-title-link-external', itemprop: 'url'}) }} {% elif is_index %} {%- if post.sticky > 0 %} {%- endif %} - {{ next_url(post.path, post.title or __('post.untitled'), {class: 'post-title-link', itemprop: 'url'}) }} + {{- next_url(post.path, post.title or __('post.untitled'), {class: 'post-title-link', itemprop: 'url'}) }} {%- else %} {{- post.title }} {{- post_edit(post.source) }} diff --git a/source/css/_common/components/post/post-header.styl b/source/css/_common/components/post/post-header.styl index 24d6562..b3a96e8 100644 --- a/source/css/_common/components/post/post-header.styl +++ b/source/css/_common/components/post/post-header.styl @@ -62,6 +62,8 @@ .post-sticky-flag { display: inline-block; + // Fix issue #80 #140 + margin-right: 8px; transform: rotate(30deg); }