From 7a52bc51593b955354b58b131a7b1a94983a7505 Mon Sep 17 00:00:00 2001 From: Oscar Cortez Date: Fri, 17 Jul 2015 21:56:21 -0600 Subject: [PATCH] add validation for the layout type --- index.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/index.html b/index.html index 351f26b..b03478c 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,41 @@ layout: default --- +{% if site.post_type == 'highlight' %} + +
+ {% for post in site.posts offset:1 %} +
+
+

{{ post.title }}

+
+
+ {{ post.excerpt }} +
+ + +
+ +
    +
  • Facebook
  • +
  • Twitter
  • +
  • Google+
  • +
+
+
+ {% endfor %} +
+ +{% else %} +
{% for post in site.posts %}
@@ -32,3 +67,5 @@ layout: default
{% endfor %}
+ +{% endif %}