Moved Breadcrumb Navigation into _includes/masthead.html
Breadcrumb must me called before the image caption otherwise it looks really ugly.
This commit is contained in:
		
					parent
					
						
							
								50750eafa1
							
						
					
				
			
			
				commit
				
					
						07a25e31a2
					
				
			
		
					 1 changed files with 56 additions and 22 deletions
				
			
		|  | @ -10,6 +10,12 @@ | ||||||
| 	</div><!-- /.row --> | 	</div><!-- /.row --> | ||||||
| </div><!-- /#masthead --> | </div><!-- /#masthead --> | ||||||
| 
 | 
 | ||||||
|  | {% if page.breadcrumb == true %} | ||||||
|  | {% include breadcrumb.html %} | ||||||
|  | {% endif %} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% elsif page.header.title %} | {% elsif page.header.title %} | ||||||
|  | @ -22,6 +28,10 @@ | ||||||
| 	</div><!-- /.row --> | 	</div><!-- /.row --> | ||||||
| </div><!-- /#masthead --> | </div><!-- /#masthead --> | ||||||
| 
 | 
 | ||||||
|  | {% if page.breadcrumb == true %} | ||||||
|  | {% include breadcrumb.html %} | ||||||
|  | {% endif %} | ||||||
|  | 
 | ||||||
| {% if page.header.caption_url && page.header.caption %} | {% if page.header.caption_url && page.header.caption %} | ||||||
| <div class="masthead-caption"> | <div class="masthead-caption"> | ||||||
| 	<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a> | 	<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a> | ||||||
|  | @ -34,6 +44,8 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| {% elsif page.header.image_fullwidth %} | {% elsif page.header.image_fullwidth %} | ||||||
| 
 | 
 | ||||||
| <div id="masthead"> | <div id="masthead"> | ||||||
|  | @ -46,6 +58,10 @@ | ||||||
| 	</div><!-- /.row --> | 	</div><!-- /.row --> | ||||||
| </div><!-- /#masthead --> | </div><!-- /#masthead --> | ||||||
| 
 | 
 | ||||||
|  | {% if page.breadcrumb == true %} | ||||||
|  | {% include breadcrumb.html %} | ||||||
|  | {% endif %} | ||||||
|  | 
 | ||||||
| {% if page.header.caption_url && page.header.caption %} | {% if page.header.caption_url && page.header.caption %} | ||||||
| <div class="masthead-caption"> | <div class="masthead-caption"> | ||||||
| 	<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a> | 	<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a> | ||||||
|  | @ -58,6 +74,8 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| {% elsif page.header.pattern %} | {% elsif page.header.pattern %} | ||||||
| 
 | 
 | ||||||
| <div id="masthead-with-pattern" style="background: url('{{ site.url }}/images/{{ page.header.pattern }}')"> | <div id="masthead-with-pattern" style="background: url('{{ site.url }}/images/{{ page.header.pattern }}')"> | ||||||
|  | @ -68,6 +86,10 @@ | ||||||
| 	</div><!-- /.row --> | 	</div><!-- /.row --> | ||||||
| </div><!-- /#masthead --> | </div><!-- /#masthead --> | ||||||
| 
 | 
 | ||||||
|  | {% if page.breadcrumb == true %} | ||||||
|  | {% include breadcrumb.html %} | ||||||
|  | {% endif %} | ||||||
|  | 
 | ||||||
| {% if page.header.caption_url && page.header.caption %} | {% if page.header.caption_url && page.header.caption %} | ||||||
| <div class="masthead-caption"> | <div class="masthead-caption"> | ||||||
| 	<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a> | 	<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a> | ||||||
|  | @ -80,6 +102,8 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| {% elsif page.header.background-color %} | {% elsif page.header.background-color %} | ||||||
| 
 | 
 | ||||||
| <div id="masthead-with-background-color" style="background: {{ page.header.background-color }};"> | <div id="masthead-with-background-color" style="background: {{ page.header.background-color }};"> | ||||||
|  | @ -90,6 +114,10 @@ | ||||||
| 	</div><!-- /.row --> | 	</div><!-- /.row --> | ||||||
| </div><!-- /#masthead --> | </div><!-- /#masthead --> | ||||||
| 
 | 
 | ||||||
|  | {% if page.breadcrumb == true %} | ||||||
|  | {% include breadcrumb.html %} | ||||||
|  | {% endif %} | ||||||
|  | 
 | ||||||
| {% if page.header.caption_url && page.header.caption %} | {% if page.header.caption_url && page.header.caption %} | ||||||
| <div class="masthead-caption"> | <div class="masthead-caption"> | ||||||
| 	<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a> | 	<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a> | ||||||
|  | @ -102,6 +130,12 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% elsif page.header == no %} | 
 | ||||||
|  | 
 | ||||||
|  | {% elsif page.header = no %} | ||||||
|  | 
 | ||||||
|  | {% if page.breadcrumb == true %} | ||||||
|  | {% include breadcrumb.html %} | ||||||
|  | {% endif %} | ||||||
| 
 | 
 | ||||||
| {% endif %} | {% endif %} | ||||||
|  |  | ||||||
		Reference in a new issue