mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +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) {
|
||||
args = args[0].split('-');
|
||||
const group = parseInt(args[0], 10);
|
||||
const layout = parseInt(args[1], 10);
|
||||
let group, layout;
|
||||
if (args[0]) {
|
||||
[group, layout] = args[0].split('-');
|
||||
}
|
||||
|
||||
content = ctx.render.renderSync({ text: content, engine: 'markdown' });
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user