summaryrefslogtreecommitdiffstats
path: root/_layouts/post.html
blob: c6d1215949454f7aa552fe9a432e546b200ce64f (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
layout: default
---
<h1>
	{{ page.title }}
</h1>
<p class=dimmedtext >
	{% assign argv = page.date | append: ",true,true" | split: "," %}
	{% include datumincas.html %}
	{{ return }}
	{% assign author = site.authors | where: 'short_name', page.author | first %}
	{% assign anon = site.authors | where: 'short_name', "anonymous" | first %}
	-
	{% if author %}
		<a href="/blog/avtorji.html#{{ author.short_name }}">{{ author.name }}</a>
	{% else %}
		<a href="/blog/avtorji.html#{{ anon.short_name }}">{{ anon.name }}</a>
	{% endif %}
	- kategorije:
	{% assign i = 1 %}
	{% for category in page.categories %}
		{% assign i = i | plus: 1 %}
		<a href="/blog/kategorije.html#{{ category }}">{{ category }}</a>{%
		if i < page.categories.size %}, {% elsif i == page.categories.size %}
			in
		{% endif %}{% endfor %}.
	- značke:
	{% assign i = 1 %}
	{% for tag in page.tags %}
		{% assign i = i | plus: 1 %}
		<a href="/blog/znacke.html#{{ tag }}">{{ tag }}</a>{%
		if i < page.tags.size %}, {% elsif i == page.tags.size %}
			in
		{% endif %}{% endfor %}.

</p>

{{ content }}

{% if page.lastmodified %}
	<div class="dimmedtext {% comment %} textright {% endcomment %}">
		Objava je bila nazadnje urejena v
		{% assign argv = page.lastmodified | split: ","%}
		{% include datumincas.html %}
		{{ return }}.
	</div>
{% endif %}

<hr>
{% if site.comments %}
<h2>
	kometarji
</h2>
{% assign argv = "" | split: "," %}
{% assign postid = "post|" | append: page.url %}
{% assign argv = argv | unshift: postid %} <!-- unshift doda na zač. arraya -->
{% capture commentsthreadhtml %}
	{% include commentsthread.html %} <!-- outputs html directly and returns next uid / number of comments -->
{% endcapture %}
{% assign totalcomments = return %}
<h3>
	{{ totalcomments }}
	{% assign argv = ",komentarjev,komentar,komentarja,komentarji" | prepend: totalcomments | split: "," %}
	{% include slnum.html %}
	{{ return }}
</h3>
{{ commentsthreadhtml }}
<label for=checkbox{{ return }} >
	<a>
		napiši komentar na to objavo
	</a>
</label>
<input type=checkbox class=showhide-checkbox id=checkbox{{ return }} />
<div class=showhide-hiddenelement >
	{% assign argv = "" | split: "," %}
	{% assign postid = "post|" | append: page.url %}
	{% assign argv = argv | unshift: totalcomments %}
	{% assign argv = argv | unshift: postid %} <!-- unshift doda na za. arraya -->
	{% include commentreplyform.html %}
	{{ return }}
</div>
{% endif %}