]> khamidou — GitHub mirrors - debuggers.git/commitdiff
modified layout
authorkarim hamidou <khamidou@gmail.com>
Thu, 1 May 2014 09:27:38 +0000 (11:27 +0200)
committerkarim hamidou <khamidou@gmail.com>
Thu, 1 May 2014 09:27:38 +0000 (11:27 +0200)
_layouts/post.html

index fc6f39979fd768a4a6a0bb2527dfa33d7cbb1b00..c9361e202486dcc059c96a2076ac25cf7bdf7882 100644 (file)
@@ -10,7 +10,8 @@ layout: default
     <span class="cat">{{ cat }}</span>
     {% endfor %}
 </span>
-
-{{ content }}
+{% if content contains '<!-- more -->' %}
+    {{ content | split :'<!-- more -->' | last }}
+{% endif %}
 
 </div>