精品 style
首先增加精品的样式文件.
在next 主题下面的 post.swig 找到如下代码.1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34{% if theme.post_wordcount.wordcount or theme.post_wordcount.min2read %}
    <div class="post-wordcount">
        {% if theme.post_wordcount.wordcount %}
        {% if not theme.post_wordcount.separated_meta %}
            <span class="post-meta-divider">|</span>
        {% endif %}
        <span class="post-meta-item-icon">
            <i class="fa fa-file-word-o"></i>
        </span>
        {% if theme.post_wordcount.item_text %}
            <span class="post-meta-item-text">{{ __('post.wordcount') }}:</span>
        {% endif %}
        <span title="{{ __('post.wordcount') }}">
            {{ wordcount(post.content) }}
        </span>
        {% endif %}
        {% if theme.post_wordcount.wordcount and theme.post_wordcount.min2read %}
        <span class="post-meta-divider">|</span>
        {% endif %}
        {% if theme.post_wordcount.min2read %}
        <span class="post-meta-item-icon">
            <i class="fa fa-clock-o"></i>
        </span>
        {% if theme.post_wordcount.item_text %}
            <span class="post-meta-item-text">{{ __('post.min2read') }} ≈</span>
        {% endif %}
        <span title="{{ __('post.min2read') }}">
            {{ min2read(post.content) }}
        </span>
        {% endif %}
    </div>
    {% endif %}
在后面添加以下代码
1  | {% if post.top %}  | 
增加 jingping css 样式
1  | .jingping{  | 
到此就完成了精品的设置.只要在文章的 md 文件中 加入如下代码1
essential: true
就能看到设置的精品文章了
效果
