{{ block.title }} {% if (Object.keys(block.tags).length) { %} {% for (var i in block.tags) { %} {{ block.tags[i] }} {% } %} {% } %} {% var r = document.createRange(); r.selectNode(document.body); %} {% var c = r.createContextualFragment(block.content).childNodes; %} {% var n = [].slice.call(c); %} {% var e = n.filter(function (i) { return (i.nodeType === 1); }); %} {% e.slice(0, 2).forEach(function (child) { %} {{ child.outerHTML }} {% }); %}