mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Fix undefind in group-pictures
This commit is contained in:
parent
ca0e6f0a0e
commit
2195b01d8c
@ -120,9 +120,10 @@ const templates = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.exports = ctx => function(args, content) {
|
module.exports = ctx => function(args, content) {
|
||||||
args = args[0].split('-');
|
let group, layout;
|
||||||
const group = parseInt(args[0], 10);
|
if (args[0]) {
|
||||||
const layout = parseInt(args[1], 10);
|
[group, layout] = args[0].split('-');
|
||||||
|
}
|
||||||
|
|
||||||
content = ctx.render.renderSync({ text: content, engine: 'markdown' });
|
content = ctx.render.renderSync({ text: content, engine: 'markdown' });
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user