-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.html
47 lines (44 loc) · 1.75 KB
/
post.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
---
layout: default
---
<div class="post">
<h3 class="date">{{ page.date | date: "%d.%m.%Y" }}</h3>
<h2 class="title"><a href="{{ page.url }}">{{ page.title }}</a></h2>
<div class="meta">
Publicēja <span class="author">{{ page.author }}</span> •
Birkas:
{% for tag in page.tags %}
<a href="/tags/{{ tag }}" title="Apskatīt ierakstus ar birku "{{ tag }}"">{{ tag }}</a>{% if forloop.last != true %}, {% endif %}
{% endfor %} •
<a href="{{ post.url }}#disqus_thread">Parādīt komentārus</a>
</div>
<div class="body">
{{ content }}
</div>
<div class="related_posts">
<h4>Iespējams saistītie ieraksti (automātiski ģenerēti)</h4>
<ul class="posts">
{% for post in site.related_posts limit:3 %}
<li><span class="date">{{ post.date | date: "%d.%m.%Y" }}</span> » <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
{% if page.comments_disabled != true %}
<div id="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
// var disqus_developer = 1;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://opendata-lv.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Lūdzu ieslēdziet JavaScript atbalstu, lai apskatītu <a href="http://disqus.com/?ref_noscript=opendata-lv">komentārus, ko nodrošina Disqus.</a></noscript>
</div>
<br/>
{% endif %}
</div>