From c16e141f4f3a10e5b3ebc642b2af9540a38d0e29 Mon Sep 17 00:00:00 2001 From: karim hamidou Date: Tue, 24 Jun 2014 08:53:50 +0200 Subject: [PATCH] fixed layout for link posts --- _layouts/post.html | 36 +++++++++++++++++++++++------------- index.html | 2 +- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 2b692b8..cbf3803 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,19 +2,29 @@ layout: default ---
+ {% if page.image %} + + {%endif %} -{% if page.image %} - -{%endif %} - -

{{ page.title }}

-
Posted: {{ page.date | date_to_string }}. - Filed under: {% for cat in page.categories %} - {{ cat }} - {% endfor %} -
-{% if content contains '' %} - {{ content | split :'' | last }} -{% endif %} + {% if page.link %} +
+

{{ page.title}} ∞

+ {{ post.content }} +
+ {% else %} +

{{ page.title }}

+ {% endif %} +
Posted: {{ page.date | date_to_string }}. + Filed under: {% for cat in page.categories %} + {{ cat }} + {% endfor %} +
+ {% if page.link %} + {{ content }} + {% else %} + {% if content contains '' %} + {{ content | split :'' | last }} + {% endif %} + {% endif %}
diff --git a/index.html b/index.html index ca6da07..7379dec 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ title: Debuggers
{% if post.link %}
-

{{ post.title}}

+

{{ post.title}} ∞

{{ post.content }}
{% else %} -- 2.43.0