Skip to content

Commit

Permalink
abstracting header to an include
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbaileynar committed Sep 4, 2019
1 parent 11483e4 commit d06f0f0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
14 changes: 14 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% if page.url == "/" %}
<h1>{{ site.title | replace: 'Riverscapes Consortium', '<div class="RCLogo">Riverscapes Consortium</div>' }}</h1>
{% if page.subtitle %}
<h3 class="post-subtitle subheader">{{ site.description }}</h3>
{% endif %}
{% else %}


<h4 class="subheader show-for-medium"><a href="{{ site.baseurl }}/">{{ site.title }}</a></h4>
<h1>{{ page.title | replace: 'Riverscapes Consortium', '<div class="RCLogo">Riverscapes Consortium</div>' }}</h1>
{% if page.subtitle %}
<h3 class="post-subtitle subheader">{{ page.subtitle }}</h3>
{% endif %}
{% endif %}
15 changes: 1 addition & 14 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,7 @@
<header>
<div id="topbarnav"></div>
<div id="headcallout" class="text-center callout large">
{% if page.url == "/" %}
<h1>{{ site.title | replace: 'Riverscapes Consortium', '<div class="RCLogo">Riverscapes Consortium</div>' }}</h1>
{% if page.subtitle %}
<h3 class="post-subtitle subheader">{{ site.description }}</h3>
{% endif %}
{% else %}


<h4 class="subheader show-for-medium"><a href="{{ site.baseurl }}/">{{ site.title }}</a></h4>
<h1>{{ page.title | replace: 'Riverscapes Consortium', '<div class="RCLogo">Riverscapes Consortium</div>' }}</h1>
{% if page.subtitle %}
<h3 class="post-subtitle subheader">{{ page.subtitle }}</h3>
{% endif %}
{% endif %}
{% include header.html %}
</div>
</header>

Expand Down

0 comments on commit d06f0f0

Please sign in to comment.