A large number of minor fixes

This commit is contained in:
Asutosh Palai
2016-07-15 15:28:51 -04:00
parent e7e8df0f32
commit 2f7aa7db3e
6 changed files with 103 additions and 34 deletions

View File

@ -7,18 +7,25 @@ title: "Home"
<div class="container content">
<section id="new-articles" class="row">
{% for post in site.posts limit: 4 offset: 1 %}
<div class="article col-sm-3">
<a href="{{ post.url }}">
<div class="center-fill-container img-container">
<img src="/images/posts/{{post.image}}" alt="" class="img-center-fill {% if post.image == null %}hidden{% endif %}">
{% for cat in site.data.homepage_categories.new_articles %}
{% for post in site.categories[cat] %}
{% if post.image != null %}
<div class="article col-sm-3">
<a href="{{ post.url }}">
<div class="cover-container-container">
<div class="center-fill-container img-container">
<img src="/images/posts/{{post.image}}" alt="" class="img-center-fill {% if post.image == null %}hidden{% endif %}">
</div>
</div>
<div class="details text-center ">
<h3 class="title">{{ post.title }}</h3>
<p class="tag">{{ post.category }}</p>
</div>
</a>
</div>
<div class="details text-center ">
<h3 class="title">{{ post.title | truncatewords: 4}}</h3>
<p class="tag">{{ post.category }}</p>
</div>
</a>
</div>
{% break %}
{% endif %}
{% endfor %}
{% endfor %}
</section>
</div>
@ -26,8 +33,7 @@ title: "Home"
<div id="featured-articles-container" class=" container-fluid">
<div id="featured-articles" class=" container">
<div class="row">
<h1 class="col-sm-12" id="featured-articles-title">Featured Articles</h1>
{% for cat in site.data.homepage_categories %}
{% for cat in site.data.homepage_categories.featured_articles %}
{% for post in site.categories[cat] %}
{% if post.image != null %}
<div class="article-container col-sm-4">
@ -39,7 +45,7 @@ title: "Home"
</div>
<div class="details text-center">
<span class="tag">{{ post.category }}</span>
<h3 class="title">{{ post.title | truncatewords: 4}}</h3>
<h3 class="title">{{ post.title }}</h3>
<p class="excerpt">{% if post.excerpt != null %}{{ post.excerpt | markdownify | truncate: 75 }}{% endif %}</p>
</div>
</a>
@ -73,7 +79,7 @@ title: "Home"
<div class="container">
<div class="video-container center-both">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="youtube-video" id="youtube-video-{{ video.id }}" data-id="{{ video.id }}" src="https://www.youtube.com/embed/{{ video.id }}?enablejsapi=1" allowfullscreen></iframe>
<iframe class="youtube-video" id="youtube-video-{{ video.id }}" data-id="{{ video.id }}" src="https://www.youtube.com/embed/{{ video.id }}?enablejsapi=1&showinfo=0" allowfullscreen></iframe>
</div>
</div>
<div class="carousel-caption" id="youtube-title-{{ video.id }}" data-id="{{ video.id }}">