/
post.haml
46 lines (40 loc) · 1.25 KB
/
post.haml
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
---
layout: default
---
#post
=header page.title
%p.subtitle
= page.date.strftime("%d/%m/%Y")
Tags:
= tag_links(page.tags)
-# TextMate edit link. JS sets the link text if a cookie is present: see js/app.js.
%span#edit= link_to('', "txmt://open?url=file://#{page.path}")
-# Without the squiggly, Haml will indent highlighted code.
~ content
#older_and_newer
- if page.next
%p
%strong Newer:
=post_link(page.next)
- if page.previous
%p
%strong Older:
=post_link(page.previous)
#related_posts
%h3 Related posts
- site.related_posts.each do |rp|
%p
%strong= rp.date.strftime("%d/%m/%Y")
= post_link(rp)
#disqus_thread
:javascript
var disqus_developer = location.host.match(/\.dev$|^localhost/) ? 1 : 0;
:javascript
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://lucasefe.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
%noscript
Please enable JavaScript to view the
%a{:href=>"http://disqus.com/?ref_noscript=lucasefe"} comments powered by Disqus.