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

@ -1,4 +1,4 @@
{% assign post = site.posts.first %}
{% assign post = site.categories['coverstory'].first %}
{% if page.is_post == true %}
{% assign post = page %}
{% endif %}

View File

@ -19,17 +19,17 @@
{% for cat in site.data.categories %}
{% if cat.subcategories != nil %}
<li class = "dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ cat.name | uppercase }} <span class="caret"></span></a>
<a class="hover-underline" href="#" class="dropdown-toggle" data-toggle="dropdown">{{ cat.name | uppercase }} <span class="caret"></span></a>
<ul class="dropdown-menu">
{% for subcat in cat.subcategories %}
{% if site.categories[subcat.name] != nil %}
<li><a href="/category/{{ subcat.name }}/">{{ subcat.title | uppercase }}</a></li>
<li><a class="hover-underline" href="/category/{{ subcat.name }}/">{{ subcat.title | uppercase }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% elsif site.categories[cat.name] != nil%}
<li><a href="/category/{{ cat.name }}/">{{ cat.name | uppercase }}</a></li>
<li><a class="hover-underline" href="/category/{{ cat.name }}/">{{ cat.name | uppercase }}</a></li>
{% endif %}
{% endfor %}
</ul>