devroom.io/layouts/post.haml
2013-08-16 06:38:15 +02:00

37 lines
1.0 KiB
Plaintext

.row
.col-sm-12
.post
%p.meta= get_pretty_date(item)
%h1.title= item[:title]
.row
.col-sm-9
.post
.body
= yield
#recent-posts
%h3 Recent posts on <strong>ariejan.net</strong>
- sorted_articles[0..4].each do |article|
%h4.title
%a{href: article.path, title: article[:title]}
%span.meta= get_short_date(article)
= article[:title]
#comments
#disqus_thread
:javascript
var disqus_url = "#{url_for(item)}";
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//ariejannet.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
.col-sm-3.hidden-xs
#adpacks
.bsarocks.bsap_a40a34b3f2d124df05e7c20ddaa79bd8#bsap_1287881
%a(href="http://adpacks.com" id="bsap_aplink") via Ad Packs