From a81c945ec7b790808f144ba2c5f3b62a187bef25 Mon Sep 17 00:00:00 2001 From: Asutosh Palai Date: Sun, 19 Jun 2016 16:18:46 +0530 Subject: [PATCH] Completed post page --- _includes/header.html | 8 +++++--- _layouts/post.html | 32 +++++++++++++++++++------------- css/base.scss | 23 ++++++++++++++++++++--- index.html | 2 +- 4 files changed, 45 insertions(+), 20 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 55553bc..43b1a59 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -3,8 +3,10 @@ {% assign post = page %} {% endif %} -
+
+ {% if post.image != nil %}
+ {% endif %}

{{ post.title }}

@@ -12,7 +14,7 @@
{% if page.is_post and post.next %} - + Next {% endif %} @@ -21,7 +23,7 @@
{% if page.is_post and post.next %} - + Previous {% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index f0818dd..82affe4 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,12 +1,7 @@ --- layout: layout --- -
- -

- {{ page.title }} -

- +
@@ -17,10 +12,21 @@ layout: layout
-{% if page.isImageCover == false %} - {% if page.image %} -
- -
- {% endif %} -{% endif %} + diff --git a/css/base.scss b/css/base.scss index 77c56bd..8613c36 100644 --- a/css/base.scss +++ b/css/base.scss @@ -140,7 +140,7 @@ body { // ============= HOME-HEADER ============= // -#home-header { +#header { position: relative; height: 500px; margin-bottom: -($new-article-img-height / 4); @@ -197,7 +197,7 @@ body { // ============= /HOME-HEADER ============= // // ============= NEW-ARTICLES ============ // -#new-articles { +#new-articles, #related-articles { z-index: 10; .img-container { @@ -389,12 +389,15 @@ blockquote { // ============== POST ============== // .post { + z-index: 10; + position: relative; background: white; padding: 10px 50px; - @include shadow(); + margin-bottom: 20px; font-size: 1.1em; line-height: 1.5em; color: #333332; + font-family: AvenirNext; p img { display: block; @@ -408,8 +411,22 @@ blockquote { } } +.post-header { + box-shadow: 0 100px 125px -100px; +} + // ============== /POST ============== // +// ========= RELATED-ARTICLES ======== // + +#related-articles { + padding-top: 40px; + padding-bottom: 20px; + background: #f0f0f0; +} + +// ========= /RELATED-ARTICLES ======= // + // ============== FOOTER ============== // footer { diff --git a/index.html b/index.html index 69ed8e4..faa90e0 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ title: "Home"
{% for post in site.posts limit: 4 offset: 1 %} -
+