Skip to content

Commit 71a882d

Browse files
committed
feat (ari) add image with caption default template
1 parent c278185 commit 71a882d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

config/image-sizes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ let nbSizes = 0
3636
*/
3737
function getTemplateFileNames() {
3838
return fs.readdirSync(dir.tpl).filter(function (tpl) {
39-
return tpl !== 'default-picture.tpl'
39+
if (tpl !== 'default-picture.tpl' && tpl !== 'default-picture-caption.tpl') {
40+
return tpl
41+
}
4042
})
4143
}
4244

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<noscript>
2+
%%data-location%%
3+
<img src="%%default_img%%" %%attributes%% />
4+
</noscript>
5+
<picture>
6+
<!--[if IE 9]><video style="display: none"><![endif]-->
7+
%%sources%%
8+
<!--[if IE 9]></video><![endif]-->
9+
<img %%srcgif%% %%attributes%%/>
10+
<figcaption>%%caption%%</figcaption>
11+
</picture>

0 commit comments

Comments
 (0)