mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Fix .post-sticky-flag margin
This commit is contained in:
parent
88b4ae077a
commit
b3769198ea
@ -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
|
||||
|
||||
@ -30,14 +30,14 @@
|
||||
{%- endif %}
|
||||
{%- set postTitleIcon = '<i class="fa fa-external-link-alt"></i>' %}
|
||||
{%- 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 %}
|
||||
<span class="post-sticky-flag" title="{{ __('post.sticky') }}">
|
||||
<i class="fa fa-thumbtack"></i>
|
||||
</span>
|
||||
{%- 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) }}
|
||||
|
||||
@ -62,6 +62,8 @@
|
||||
|
||||
.post-sticky-flag {
|
||||
display: inline-block;
|
||||
// Fix issue #80 #140
|
||||
margin-right: 8px;
|
||||
transform: rotate(30deg);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user