Showing
2 changed files
with
3 additions
and
3 deletions
@@ -19,7 +19,7 @@ app.engine('.hbs', hbs({ | @@ -19,7 +19,7 @@ app.engine('.hbs', hbs({ | ||
19 | defaultLayout: 'layout', | 19 | defaultLayout: 'layout', |
20 | layoutsDir: doraemon, | 20 | layoutsDir: doraemon, |
21 | partialsDir: [path.join(__dirname, 'views/partial'), `${doraemon}/partial`], | 21 | partialsDir: [path.join(__dirname, 'views/partial'), `${doraemon}/partial`], |
22 | - helpers: 'helpers' | 22 | + helpers: require('../../library/helpers') |
23 | })); | 23 | })); |
24 | 24 | ||
25 | // router | 25 | // router |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | {{# list}} | 5 | {{# list}} |
6 | <li class="swiper-slide"> | 6 | <li class="swiper-slide"> |
7 | <a href="javascript:;"> | 7 | <a href="javascript:;"> |
8 | - <img src="{{img}}" alt=""> | 8 | + <img src="{{image img 450 600}}" alt=""> |
9 | </a> | 9 | </a> |
10 | </li> | 10 | </li> |
11 | {{/ list}} | 11 | {{/ list}} |
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | {{^}} | 22 | {{^}} |
23 | <div class="banner-top-single"> | 23 | <div class="banner-top-single"> |
24 | <a href={{url}}> | 24 | <a href={{url}}> |
25 | -<img class="img" src="{{img}}"> | 25 | +<img class="img" src="{{image img 450 600}}"> |
26 | </a> | 26 | </a> |
27 | </div> | 27 | </div> |
28 | {{/if}} | 28 | {{/if}} |
-
Please register or login to post a comment