Skip to content

Commit a6d8b9d

Browse files
committed
fix(pages): update/merge default views
2 parents 8d19759 + cff3a23 commit a6d8b9d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

template/pages/@/sections/info-bar.ejs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const barCols = []
88
['promo', 'percent']
99
].forEach(([prop, icon]) => {
1010
if (info[prop] && info[prop].show) {
11-
const { link, text } = info[prop]
12-
barCols.push({ link, text, icon })
11+
const { link, title, text } = info[prop]
12+
barCols.push({ link, title, text, icon })
1313
}
1414
})
1515
%>
@@ -18,14 +18,21 @@ const barCols = []
1818
<section class="info-bar">
1919
<div class="container">
2020
<div class="info-bar__nav row">
21-
<% barCols.forEach(({ link, icon, text }) => { %>
21+
<% barCols.forEach(({ link, icon, title, text }) => { %>
2222
<div class="col-auto col-sm-6 col-lg">
2323
<a class="info-bar__item" href="<%= link || 'javascript:;' %>">
2424
<span class="rounded-icon">
2525
<i class="i-<%= icon %>"></i>
2626
</span>
2727
<div class="ml-2 ml-md-3">
28-
<%= text %>
28+
<% if(title) { %>
29+
<div class="info-bar__title">
30+
<%= title %>
31+
</div>
32+
<% } %>
33+
<div class="info-bar__text">
34+
<%= text %>
35+
</div>
2936
</div>
3037
</a>
3138
</div>

0 commit comments

Comments
 (0)