We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c278185 commit 71a882dCopy full SHA for 71a882d
config/image-sizes.js
@@ -36,7 +36,9 @@ let nbSizes = 0
36
*/
37
function getTemplateFileNames() {
38
return fs.readdirSync(dir.tpl).filter(function (tpl) {
39
- return tpl !== 'default-picture.tpl'
+ if (tpl !== 'default-picture.tpl' && tpl !== 'default-picture-caption.tpl') {
40
+ return tpl
41
+ }
42
})
43
}
44
src/conf-img/tpl/default-picture-caption.tpl
@@ -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