From 9b6a911235243cd42a4ca8be42fe42866ffc57d0 Mon Sep 17 00:00:00 2001 From: Byron Corrales Date: Mon, 20 Jul 2015 20:49:25 -0600 Subject: [PATCH] Highlight post layout #1 y #2 --- _layouts/default.html | 10 ++++++---- _sass/_layout.scss | 7 +++++++ index.html | 13 ++++++++----- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 4c39d776..5997399f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,6 +5,7 @@ + {% if site.header_type == 'drawer' %}
{% include header_fixed.html %} @@ -15,15 +16,16 @@
- {% if site.post_type == 'highlight' %} - {% include highlight_post.html %} - {% endif %} - {{ content }} +
+ {{ content }} +
{% include footer.html %}
+ + {% if site.pagination_type == 'ops' %} diff --git a/_sass/_layout.scss b/_sass/_layout.scss index ac0e3d25..6f955a73 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -13,8 +13,15 @@ color: #fff; } +.post-button{ + position: absolute; + right: 15px; + bottom: 25px; +} + .section-highlight { position: relative; + margin: 10px; .mdl-card__supporting-text { margin: 40px; diff --git a/index.html b/index.html index 63999efd..0366b15d 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,13 @@ --- layout: default --- + {% if site.post_type == 'highlight' %} + + {% include highlight_post.html %} -
{% for post in site.posts offset:1 %} +

{{ post.title }}

@@ -12,7 +15,7 @@

{{ post.title }}

{{ post.excerpt }}
-
@@ -42,11 +45,11 @@

{{ post.title }}

{% endfor %} -
+ {% else %} -
+ {% for post in site.posts %}
@@ -85,6 +88,6 @@

{{ post.title }}

{% endfor %} -
+ {% endif %}