Skip to content

Commit

Permalink
Fix undefind in group-pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Apr 16, 2024
1 parent ca0e6f0 commit 2195b01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/tags/group-pictures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' });

Expand Down

0 comments on commit 2195b01

Please sign in to comment.