-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
02 - Add a content block to the homepage
- Loading branch information
1 parent
74ec36a
commit ff882ed
Showing
7 changed files
with
156 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="row"> | ||
<h3>{{ content.title }}</h3> | ||
</div> | ||
|
||
<div class="row"> | ||
<div> | ||
{% for image in content.images %} | ||
<img src="{{ image.formats['200x'] }}" alt="{{ image.title }}" class="img-thumbnail m-3"> | ||
{% endfor %} | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="row"> | ||
<blockquote class="blockquote text-center"> | ||
<p class="mb-0">{{ content.quote }}</p> | ||
<footer class="blockquote-footer">{{ content.author }}</footer> | ||
</blockquote> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<div class="row"> | ||
{% set imageContainer %} | ||
{%- if content.image %} | ||
<div class="col-3"> | ||
<img src="{{ content.image.formats['200x'] }}" class="img-fluid rounded" alt="{{ content.image.title }}"> | ||
</div> | ||
{% endif -%} | ||
{% endset %} | ||
|
||
{% if view.image.displayOption == 'left' %} | ||
{{ imageContainer|raw }} | ||
{% endif %} | ||
|
||
<div class="{{ imageContainer ? 'col-9' : 'col-12'}}"> | ||
<h3>{{ content.title }}</h3> | ||
|
||
{{ content.article|raw }} | ||
</div> | ||
|
||
{% if view.image.displayOption == 'right' %} | ||
{{ imageContainer|raw }} | ||
{% endif %} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% for block in content.blocks %} | ||
<section class="container mt-5 clearfix"> | ||
{% include "includes/block-types/#{block.type}.html.twig" with { | ||
content: block, | ||
view: view.blocks[loop.index0], | ||
} only %} | ||
</section> | ||
{% endfor %} |
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