]> khamidou — GitHub mirrors - debuggers.git/commitdiff
fixed layout for link posts
authorkarim hamidou <khamidou@gmail.com>
Tue, 24 Jun 2014 06:53:50 +0000 (08:53 +0200)
committerkarim hamidou <khamidou@gmail.com>
Tue, 24 Jun 2014 06:53:50 +0000 (08:53 +0200)
_layouts/post.html
index.html

index 2b692b8edee995c56bad8fe2157c344130bfb7a1..cbf3803a0204f048dc889a13f3383174fd020a45 100644 (file)
@@ -2,19 +2,29 @@
 layout: default
 ---
 <div class="post">
+    {% if page.image %}    
+    <img class="authorPic" src="{{ page.image }}"></img>
+    {%endif %}
 
-{% if page.image %}    
-<img class="authorPic" src="{{ page.image }}"></img>
-{%endif %}
-
-<h1 class="title"><a href="{{page.url}}">{{ page.title }}</a></h1>
-<div class="meta">Posted: {{ page.date | date_to_string }}. 
-    Filed under: {% for cat in page.categories %}
-    <span class="cat">{{ cat }}</span>
-    {% endfor %}
-</div>
-{% if content contains '<!-- more -->' %}
-    {{ content | split :'<!-- more -->' | last }}
-{% endif %}
+    {% if page.link %}
+        <div class="linkPost">
+            <h1 class="title"><a href="{{ page.link }}">{{ page.title}}</a> <a href="{{ page.url }}" title="Permalink">∞</a></h1>
+             {{ post.content }}
+        </div>
+    {% else %}
+        <h1 class="title"><a href="{{page.url}}">{{ page.title }}</a></h1>
+    {% endif %}
 
+    <div class="meta">Posted: {{ page.date | date_to_string }}. 
+        Filed under: {% for cat in page.categories %}
+        <span class="cat">{{ cat }}</span>
+        {% endfor %}
+    </div>
+    {% if page.link %}
+        {{ content }}
+    {% else %}
+        {% if content contains '<!-- more -->' %}
+            {{ content | split :'<!-- more -->' | last }}
+        {% endif %}
+    {% endif %}
 </div>
index ca6da07d6264cff8e80ff08397c882875bcefcc7..7379decaa5881117694bf38c4456493f8157dca7 100644 (file)
@@ -9,7 +9,7 @@ title: Debuggers
     <div class="post">
         {% if post.link %}
         <div class="linkPost">
-             <h1 class="title"><a href="{{ post.link }}">{{ post.title}}</a></h1>
+            <h1 class="title"><a href="{{ post.link }}">{{ post.title}}</a> <a href="{{ post.url }}" title="Permalink">∞</a></h1>
              {{ post.content }}
         </div>
         {% else %}