diff --git a/_layouts/post.html b/_layouts/post.html index f31fa20..5d4fe11 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,7 +2,7 @@ layout: layout --- {% if page.isImageCover != false %} - {% if page.image %} + {% if page.image and page.image != 'hidden' %}
@@ -29,4 +29,4 @@ layout: layout {% endif %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/_posts/2015-08-11-of-facts-and-pacts-1.md b/_posts/2015-08-11-of-facts-and-pacts-1.md index 460db9a..4fcc729 100644 --- a/_posts/2015-08-11-of-facts-and-pacts-1.md +++ b/_posts/2015-08-11-of-facts-and-pacts-1.md @@ -2,6 +2,7 @@ layout: post title: "OF PACTS AND FACTS #1 : AN OVERVIEW" categories: [wona, column, cover] +image: hidden tag: Editorial excerpt: It is something everyone talks about and takes a passing interest in. But when it comes to casting votes, most of the junta can be found feigning sweet slumber on that fateful Sunday morning. And hence, politics at IIT Roorkee inevitably boils down to a select set of kingmakers and their minions. --- diff --git a/css/base.css b/css/base.css index 66f1ac3..fa67570 100644 --- a/css/base.css +++ b/css/base.css @@ -138,6 +138,10 @@ header { -ms-transition: all 0.2s ease-in; -o-transition: all 0.2s ease-in; transition: all 0.2s ease-in; } + .cover img.hidden { + visibility: hidden; + height: 10em; + } .cover .tag { width: 100px; position: absolute; diff --git a/css/base.scss b/css/base.scss index 4648e47..4eaafb3 100644 --- a/css/base.scss +++ b/css/base.scss @@ -185,6 +185,11 @@ header { opacity: 1; @include transition(all, 0.2s, ease-in); } + + &.hidden { + visibility: hidden; + height: 10em; + } } .tag { @@ -404,4 +409,4 @@ footer { &.center { text-align: center; } -} \ No newline at end of file +} diff --git a/index.html b/index.html index 2b298ac..fb57bc1 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,12 @@ layout: layout title: "Home" --- -{% for post in site.posts %} +{% for post in site.posts reversed %} {% if post.categories contains 'cover' %}
- +

{{ post.title }}

{{ post.excerpt | markdownify }} @@ -76,4 +76,4 @@ title: "Home" itemSelector: '.article-container' }); } - \ No newline at end of file +