You can add captions now to header images and article images
This commit is contained in:
parent
afe5307a29
commit
8ef95125bd
12 changed files with 144 additions and 12 deletions
|
@ -22,6 +22,16 @@
|
|||
</div><!-- /.row -->
|
||||
</div><!-- /#masthead -->
|
||||
|
||||
{% if page.header.caption_url && page.header.caption %}
|
||||
<div class="masthead-caption">
|
||||
<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a>
|
||||
</div>
|
||||
{% elsif page.header.caption %}
|
||||
<div class="masthead-caption">
|
||||
{{ page.header.caption }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
{% elsif page.header.image_fullwidth %}
|
||||
|
@ -36,32 +46,62 @@
|
|||
</div><!-- /.row -->
|
||||
</div><!-- /#masthead -->
|
||||
|
||||
{% if page.header.caption_url && page.header.caption %}
|
||||
<div class="masthead-caption">
|
||||
<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a>
|
||||
</div>
|
||||
{% elsif page.header.caption %}
|
||||
<div class="masthead-caption">
|
||||
{{ page.header.caption }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
{% elsif page.header.pattern %}
|
||||
|
||||
<div id="masthead-with-pattern" style="background: url('{{ site.url }}/images/{{ page.header.pattern }}')">
|
||||
<div class="row">
|
||||
<div class="small-12 columns">
|
||||
<figure class="small-12 columns">
|
||||
<img src="{{ site.url }}/images/{{ page.header.image }}" alt="{{ site.title }}">
|
||||
</div><!-- /.small-12.columns -->
|
||||
</figure><!-- /.small-12.columns -->
|
||||
</div><!-- /.row -->
|
||||
</div><!-- /#masthead -->
|
||||
|
||||
{% if page.header.caption_url && page.header.caption %}
|
||||
<div class="masthead-caption">
|
||||
<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a>
|
||||
</div>
|
||||
{% elsif page.header.caption %}
|
||||
<div class="masthead-caption">
|
||||
{{ page.header.caption }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
{% elsif page.header.background-color %}
|
||||
|
||||
<div id="masthead-with-background-color" style="background: {{ page.header.background-color }};">
|
||||
<div class="row">
|
||||
<div class="small-12 columns">
|
||||
<figure class="small-12 columns">
|
||||
<img src="{{ site.url }}/images/{{ page.header.image }}" alt="{{ site.title }}">
|
||||
</div><!-- /.small-12.columns -->
|
||||
</figure><!-- /.small-12.columns -->
|
||||
</div><!-- /.row -->
|
||||
</div><!-- /#masthead -->
|
||||
|
||||
{% if page.header.caption_url && page.header.caption %}
|
||||
<div class="masthead-caption">
|
||||
<a href="{{ page.header.caption_url }}">{{ page.header.caption }}</a>
|
||||
</div>
|
||||
{% elsif page.header.caption %}
|
||||
<div class="masthead-caption">
|
||||
{{ page.header.caption }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
{% elsif page.header == no %}
|
||||
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
|
Reference in a new issue