summaryrefslogtreecommitdiffstats
path: root/blog/znacke.html
blob: 68ff936b787f7bcddad9123593326e4d82066975 (plain) (blame)
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
---
layout: default
title: značke
---
<h1>
	<a href=objave.html>objave</a> | <a href=kategorije.html>kategorije</a> | značke
</h1>
<h2>
	{% assign argv = ",značk,značka,znački,značke" | prepend: site.tags.size | split: "," %}
	{{ site.tags.size }} {% include slnum.html %} {{ return }}
</h2>
<ul>  
	{% capture tag_sizes %}{% for tag in site.tags %}{{ tag[1].size | plus: -1000 }} {{ tag[0]}}^{% endfor %}{% endcapture %}
	{% assign tags_sorted_by_number_of_posts = tag_sizes | split: "^" | sort %}
	{% for pre_processed_tag in tags_sorted_by_number_of_posts %}
		{% assign tag_with_size = pre_processed_tag | split: " " %}
		{% assign key = tag_with_size[1] %}
		{% assign tag = site.tags[key] %}
		<li>
			<h3 id="{{ key }}">
				{{ key }}
			</h3>
			<p>
				<b>
					{% assign argv = ",objav,objava,objavi,objave" | prepend: tag.size | split: "," %}
					{{ tag.size }} <!--{% include slnum.html %}-->{{ return }}:
				</b>
				{% assign i = 1 %}
				{% for post in tag %}
					<a href="{{ post.url }}">{{ post.title }} @ {{ post.date | date: site.short_date_format }}</a>{% assign i = i | plus: 1 %}{% if i < tag.size %},
					{% elsif i == tag.size %}
						in
					{% endif %}{% endfor %}.
			</p>
		</li>
	{% endfor %}
</ul>