File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
layout: page
3
- title: Talks
3
+ title: Tags
4
4
permalink: /tags/
5
- show_in_header: ''
6
5
---
7
6
8
7
< div class ="tags ">
@@ -12,9 +11,14 @@ <h3 class="page-heading">Tags</h3>
12
11
{% for tag in site.tags %}
13
12
< div class ="card ">
14
13
< div class ="card-body ">
15
- < h3 class ="card-title ">
16
- < a class ="muted-link " href ="{{ tag.url | prepend: site.baseurl }} "> {{ tag.title }}</ a >
17
- </ h3 >
14
+ {% assign tagged_pages = site.posts | where: 'tags',tag.tag %}
15
+ {% assign count = 0 %}
16
+ {% if tagged_pages %}
17
+ {% assign count = tagged_pages.size %}
18
+ {% endif %}
19
+ < h5 class ="card-title ">
20
+ < a class ="muted-link " href ="{{ tag.url | prepend: site.baseurl }} "> {{ tag.title }} ({{ count }})</ a >
21
+ </ h5 >
18
22
< p class ="card-text ">
19
23
< small class ="text-muted ">
20
24
< a href ="{{ tag.url | prepend: site.baseurl }} "> Tag: {{ tag.tag }}</ a >
@@ -23,5 +27,6 @@ <h3 class="card-title">
23
27
</ div >
24
28
</ div >
25
29
{% endfor %}
30
+ </ div >
26
31
</ div >
27
- </ div >
32
+ </ div >
You can’t perform that action at this time.
0 commit comments