Fix .post-sticky-flag margin

This commit is contained in:
Mimi 2020-11-16 00:38:21 +08:00
parent 88b4ae077a
commit b3769198ea
3 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,7 @@
# See: https://theme-next.js.org/docs/theme-settings/ # 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: cache:
enable: true enable: true
@ -60,7 +60,7 @@ favicon:
custom_logo: #/uploads/custom-logo.jpg custom_logo: #/uploads/custom-logo.jpg
# Creative Commons 4.0 International License. # 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 # 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 # 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 # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org

View File

@ -30,14 +30,14 @@
{%- endif %} {%- endif %}
{%- set postTitleIcon = '<i class="fa fa-external-link-alt"></i>' %} {%- set postTitleIcon = '<i class="fa fa-external-link-alt"></i>' %}
{%- set postText = post.title or post.link %} {%- 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 %} {% elif is_index %}
{%- if post.sticky > 0 %} {%- if post.sticky > 0 %}
<span class="post-sticky-flag" title="{{ __('post.sticky') }}"> <span class="post-sticky-flag" title="{{ __('post.sticky') }}">
<i class="fa fa-thumbtack"></i> <i class="fa fa-thumbtack"></i>
</span> </span>
{%- endif %} {%- 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 %} {%- else %}
{{- post.title }} {{- post.title }}
{{- post_edit(post.source) }} {{- post_edit(post.source) }}

View File

@ -62,6 +62,8 @@
.post-sticky-flag { .post-sticky-flag {
display: inline-block; display: inline-block;
// Fix issue #80 #140
margin-right: 8px;
transform: rotate(30deg); transform: rotate(30deg);
} }