forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build out overlay header and feature row _include helper
- Loading branch information
Showing
11 changed files
with
250 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% include base_path %} | ||
|
||
{% if include.id %} | ||
{% assign feature_row = page.[include.id] %} | ||
{% else %} | ||
{% assign feature_row = page.feature_row %} | ||
{% endif %} | ||
|
||
<div class="feature__wrapper"> | ||
|
||
{% for f in feature_row %} | ||
<div class="feature__item{% if include.type %}--{{ include.type }}{% endif %}"> | ||
<div class="archive__item"> | ||
{% if f.image_path %} | ||
<div class="archive__item-teaser"> | ||
<img src= | ||
{% if f.image_path contains "http" %} | ||
"{{ f.image_path }}" | ||
{% else %} | ||
"{{ f.image_path | prepend: "/images/" | prepend: base_path }}" | ||
{% endif %} | ||
alt="{% if f.alt %}{{ f.alt }}{% endif %}"> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="archive__item-body"> | ||
{% if f.title %} | ||
<h2 class="archive__item-title">{{ f.title }}</h2> | ||
{% endif %} | ||
|
||
{% if f.excerpt %} | ||
<div class="archive__item-excerpt"> | ||
{{ f.excerpt | markdownify }} | ||
</div> | ||
{% endif %} | ||
|
||
{% if f.url %} | ||
<p><a href="{{ f.url }}" class="btn {{ f.btn_class }}">{{ f.btn_label | default: site.data.ui-text[site.locale].more_label }}</a></p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.