Permalink
Browse files

Simplify page.title vs. page_title

We already take into account page.is_spec_page set when we set
page_title at the top of the file, so we can just use page_title
throughout, without these extra conditionals.
  • Loading branch information...
1 parent a9c3af1 commit 56160436f225712cbed477958ab0ce8fa854e41a @ethanresnick ethanresnick committed Sep 12, 2016
Showing with 2 additions and 6 deletions.
  1. +2 −6 _layouts/page.html
View
@@ -116,19 +116,15 @@
</select>
</div>
{% else %}
- <h1 class="sidebar-top">{{ page.title }}</h1>
+ <h1 class="sidebar-top">{{ page_title }}</h1>
{% endif %}
</nav>
</div>
{% endif %}
<div class="content">
{% unless page.show_masthead %}
<h1>
- {% if page.is_spec_page %}
- {{ page_title }}
- {% else %}
- {{ page.title }}
- {% endif %}
+ {{ page_title }}
</h1>
{% endunless %}
<section>

0 comments on commit 5616043

Please sign in to comment.