Commit 7c476d9 1 parent 2e572c7 commit 7c476d9 Copy full SHA for 7c476d9
File tree 4 files changed +20
-39
lines changed
4 files changed +20
-39
lines changed Original file line number Diff line number Diff line change 8
8
</div >
9
9
{% endif %}
10
10
<div class =" row {{ block .header | length ? " pt-4 pb-5" : " py-5" }}" >
11
- {% for item in craft .entries .section (' latest' ).all() | slice(0 ,3 ) %}
12
- <div class =" col-12 col-md-6 col-lg-4 mb-4 latest-article" >
13
- <a href =" {{ item .url }}" class =" d-flex flex-column" >
14
- {% if item .summaryImage .one %}
15
- <div class =" img mb-4" >
16
- <img src =" {{ item .summaryImage .one .url ({ width : 800 , height : 600 , format : ' webp' }) }}" alt =" {{ item .title }}" class =" w-100" >
17
- </div >
18
- {% endif %}
19
- <h4 class =" title pt-2 mb-3" >
20
- <span >{{ item .title | length > 45 ? item .title | slice (0 , 45 ) ~ ' ...' : item .title }}</span >
21
- </h4 >
22
- {% if item .pageSummary %}
23
- <div class =" copy mb-3" >{{ item .pageSummary | length > 170 ? item .pageSummary | slice (0 , 170 ) ~ ' ...' : item .pageSummary }}</div >
24
- {% endif %}
25
- <h6 >{{ item .postDate | date (" M d, Y" ) | upper }}</h6 >
26
- </a >
27
- </div >
11
+ {% for item in craft .entries .section (' latest' ).limit(3 ).all() %}
12
+ {% include ' /_includes/_content-builder/_partial/article.twig' %}
28
13
{% endfor %}
29
14
</div >
30
15
</div >
Original file line number Diff line number Diff line change
1
+ <div class =" col-12 col-md-6 col-lg-4 mb-4 article" >
2
+ <a href =" {{ item .url }}" class =" d-flex flex-column" >
3
+ {% if item .summaryImage .one %}
4
+ <div class =" img mb-4" >
5
+ <img src =" {{ item .summaryImage .one .url ({ width : 800 , height : 600 , format : ' webp' }) }}" alt =" {{ item .title }}" class =" w-100" >
6
+ </div >
7
+ {% endif %}
8
+ <h4 class =" title pt-2 mb-3" >
9
+ <span >{{ item .title | length > 45 ? item .title | slice (0 , 45 ) ~ ' ...' : item .title }}</span >
10
+ </h4 >
11
+ {% if item .pageSummary %}
12
+ <div class =" copy mb-3" >{{ item .pageSummary | length > 170 ? item .pageSummary | slice (0 , 170 ) ~ ' ...' : item .pageSummary }}</div >
13
+ {% endif %}
14
+ <h6 >{{ item .postDate | date (" M d, Y" ) | upper }}</h6 >
15
+ </a >
16
+ </div >
Original file line number Diff line number Diff line change 1
1
{% set footerNav = craft .navigation .nodes ().handle(' footerNavigation' ).level(1 ).all() %}
2
-
3
2
<footer >
4
- <div class =" container text-center text-md-left " >
3
+ <div class =" container text-center text-md-start " >
5
4
<div class =" row py-4" >
6
5
<div class =" col-12 col-md-3" >
7
6
{% if companyInfo .address | length %}
Original file line number Diff line number Diff line change 13
13
{% set query = section.limit (6 ) %}
14
14
{% paginate query as pageInfo , pageEntries %}
15
15
{% for item in pageEntries %}
16
- <div class =" col-12 col-md-6 col-lg-4 mb-4 latest-article d-flex flex-grow-1 flex-column" >
17
- <a href =" {{ item .url }}" class =" d-flex flex-grow-1 flex-column" >
18
- {% if item .summaryImage .one %}
19
- <div class =" img mb-4" >
20
- <img src =" {{ item .summaryImage .one .url ({width : 375 , height : 220 }) }}" alt =" {{ item .title }}" class =" w-100" >
21
- </div >
22
- {% else %}
23
- <div class =" img mb-4" >
24
- <img src =" https://via.placeholder.com/375x220?text=Missing+Summary+Image" alt =" {{ item .title }}" class =" w-100" >
25
- </div >
26
- {% endif %}
27
- <h3 class =" title pt-2 mb-3" >
28
- <span >{{ item .title | length > 45 ? item .title | slice (0 , 45 ) ~ ' ...' : item .title }}</span >
29
- </h3 >
30
- {% if item .pageSummary %}
31
- <div class =" copy mb-3" >{{ item .pageSummary | length > 170 ? item .pageSummary | slice (0 , 170 ) ~ ' ...' : item .pageSummary }}</div >
32
- {% endif %}
33
- <div >{{ item .postDate | date (" M d, Y" ) | upper }}</div >
34
- </a >
35
- </div >
16
+ {% include ' /_includes/_content-builder/_partial/article.twig' %}
36
17
{% endfor %}
37
18
</div >
38
19
{% if pageInfo .totalPages > 1 %}
You can’t perform that action at this time.
0 commit comments