Fixed setting image as hidden for cover articles

This commit is contained in:
Asutosh Palai
2015-10-09 01:02:45 +05:30
parent f3b8bb4191
commit 814d47d3c5
6 changed files with 3 additions and 7 deletions

View File

@ -2,7 +2,7 @@
layout: layout
---
{% if page.isImageCover != false %}
{% if page.image and page.image != 'hidden' %}
{% if page.image %}
<div class="cover">
<img src="/images/posts/{{ page.image }}" alt="">
</div>

View File

@ -2,7 +2,6 @@
layout: post
title: "OF PACTS AND FACTS #1 : AN OVERVIEW"
categories: [wona, column]
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.
---

View File

@ -3,7 +3,6 @@ layout: post
title: "OF PACTS AND FACTS #2 - THE STRUCTURE"
categories: [wona, column]
tag: editorial
image: hidden
excerpt: In this piece, the second of a series, Watch Out! takes a look at the reasons behind this perception and at the reforms which have been announced to how the junta elects its representatives.
---
What is the SAC? How does it function, and who are its representatives? Beyond a few fuzzy beliefs, an unnervingly large section of the student population has little, if any answer to these questions. There is a temptation to blame many of the issues associated with the SAC on so-called “poly” and a flawed election system, an assumption which does hold true, but only partially in light of the actual powers of the SAC.

View File

@ -2,7 +2,6 @@
layout: post
title: "OF PACTS AND FACTS #3 : THE ANALYSIS"
categories: [wona, column]
image: hidden
tag: editorial
excerpt: The pre-existing power has been broken down to pieces and redistributed. But further empowerment has been ominously disregarded. Even more disturbingly, there has been no discussion of handing more power to the students. The system is still wholly patronizing, regarding a campus full of adults like petulant children unable to think for themselves.
---

View File

@ -1,11 +1,10 @@
---
layout : post
title : "WORC - Election Reforms"
image: hidden
categories: [wona, column, cover]
tag: news
excerpt: From dictatorial campaign rules to curbed leeway, there were enough reasons for the candidates to be vexed right from the start. Even the most apathetic voter has been victim, with the administration imposing restraints on inter-bhawan movements and gatherings on campus. As the whole campus brims with door to door campaigns and last minute calculations, WatchOut!, revamps the WatchOut! Redressal Cell (WORC) and sets out to examine how the IITR junta respond to the mighty election campaigns and the resulting restrictions to life on campus.
---
<iframe width="720" height="415"
src="https://www.youtube.com/embed/YHoJ-z9zXlQ">
</iframe>
</iframe>

View File

@ -8,7 +8,7 @@ title: "Home"
<section class="cover">
<img src="/images/tags/featured.png" class="tag">
<a href="{{ post.url }}">
<img src="/images/posts/{{post.image}}" alt="" {% if post.image == 'hidden' %} class="hidden" {% endif %}>
<img src="/images/posts/{{post.image}}" alt="" {% if post.image == null %} class="hidden" {% endif %}>
<div class="details">
<h2>{{ post.title }}</h2>
{{ post.excerpt | markdownify }}