Convert spaces to tabs for jade files

This commit is contained in:
Francesco Siddi 2017-07-13 12:35:21 +02:00
parent 3d1757476a
commit b88594958d

View File

@ -23,7 +23,7 @@ meta(property="og:image", content="{{ node.picture.thumbnail('l', api=api) }}")
| {% block body %} | {% block body %}
.container .container
| {% include 'nodes/custom/post/view_embed.html' %} | {% include 'nodes/custom/post/view_embed.html' %}
| {% endblock %} | {% endblock %}
@ -31,24 +31,24 @@ meta(property="og:image", content="{{ node.picture.thumbnail('l', api=api) }}")
| {% block footer_scripts %} | {% block footer_scripts %}
script. script.
hopToTop(); // Display jump to top button hopToTop(); // Display jump to top button
/* Expand images when their link points to a jpg/png/gif */ /* Expand images when their link points to a jpg/png/gif */
/* TODO: De-duplicate code from view post */ /* TODO: De-duplicate code from view post */
var page_overlay = document.getElementById('page-overlay'); var page_overlay = document.getElementById('page-overlay');
$('.blog_index-item .item-content a img').on('click', function (e) { $('.blog_index-item .item-content a img').on('click', function (e) {
e.preventDefault(); e.preventDefault();
var href = $(this).parent().attr('href').split("?")[0]; var href = $(this).parent().attr('href').split("?")[0];
var src = $(this).attr('src'); var src = $(this).attr('src');
if (href.match("jpg$") || href.match("png$") || href.match("gif$")) { if (href.match("jpg$") || href.match("png$") || href.match("gif$")) {
$(page_overlay) $(page_overlay)
.addClass('active') .addClass('active')
.html('<img src="' + src + '"/>'); .html('<img src="' + src + '"/>');
} else { } else {
window.location.href = href; window.location.href = href;
} }
}); });
| {% endblock %} | {% endblock %}