forked from Gaohaoyang/gaohaoyang.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtag.html
More file actions
16 lines (16 loc) · 758 Bytes
/
tag.html
File metadata and controls
16 lines (16 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% capture tags %}
{% if post %}
{% for tag in post.tags %}
<a href="{{ root_url }}/{{ site.tag_dir }}#{{ tag }}" title="Tag: {{ tag }}" rel="tag">{{ tag | join: "/" }}</a>{% unless forloop.last %} {% endunless %}
{% endfor %}
{% else %}
{% for tag in page.tags %}
<!--a href="{{ root_url }}/{{ site.tag_dir }}#{{ tag | cgi_escape }}" title="Tag: {{ tag }}" rel="tag">{{ tag | join: "/" }}</a-->
<a href="{{ root_url }}/{{ site.tag_dir }}#{{ tag }}" title="Tag: {{ tag }}" rel="tag">{{ tag | join: "/" }}</a>{% unless forloop.last %} {% endunless %}
{% endfor %}
{% endif %}
{% endcapture %}
<!-- <span class="point">•</span> -->
<span class="pageTag">
<i class="fa fa-tags"></i>{{ tags }}
</span>