next主题个性化

打开 themesnextlayout_macropost-collapse.swig,修改这里的超链的target:

1
2
3
4
5
6
7
<a class="post-title-link" href="{{ url_for(post.path) }}" itemprop="url">
{% if post.type === 'picture' %}
{{ post.content }}
{% else %}
<span itemprop="name">{{ post.title | default(__('post.untitled')) }}</span>
{% endif %}
</a>

接着打开 themesnextlayout_macropost.swig,修改这里的超链的target:

1
2
3
<a class="post-title-link" href="{{ url_for(post.path) }}" itemprop="url">{#
#}{{ post.title | default(__('post.untitled'))}}{#
#}</a>

在这两个超链里添加 target="_blank" ,最终修改如下:

target_blank.jpg