forked from shigeya/jekyll-category-archive-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
52 lines (33 loc) · 1.51 KB
/
example.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// place this into your _layouts/post.html
{% if page.categories != '' %}
<span class="entry-categories small-12 columns ">
<b>Categories:</b>
<ul class="inline-list">
{% for sitecategory in site.categories %}
{% capture currentcatupper %}{{sitecategory | first | upcase }}{% endcapture %}
{% for postcategory in page.categories %}
{% capture postcategoryupper %}{{postcategory | upcase }}{% endcapture %}
{% if currentcatupper == postcategoryupper %}
<li><a href="/{{sitecategory | first}}/" title="{{sitecategory | first }}" itemprop="url" ><span class="upercase" itemprop="name">{{sitecategory | first }}</span></a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</span>
{% endif %}
{% if page.tags != '' %}
<span class="entry-tags small-12 columns ">
<b>Tags:</b>
<ul class="inline-list">
{% for sitetag in site.tags %}
{% capture currentcatupper %}{{sitetag | first | upcase }}{% endcapture %}
{% for posttag in page.tags %}
{% capture posttagupper %}{{posttag | upcase }}{% endcapture %}
{% if currentcatupper == posttagupper %}
<li><a href="/{{sitetag | first}}/" title="{{sitetag | first }}" itemprop="url" ><span class="upercase" itemprop="name">{{sitetag | first }}</span></a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</span>
{% endif %}