Skip to content

Commit

Permalink
refactor(post): let to const
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Dec 15, 2019
1 parent 2af5f54 commit a28a585
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/hexo/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ class Post {
const { tag } = this.context.extend;

const scaffold = await this._getScaffold(data.layout);
let frontMatter = prepareFrontMatter({...data});
const yfmSplit = yfm.split(scaffold);

frontMatter = await tag.render(yfmSplit.data, frontMatter);
const frontMatter = await tag.render(yfmSplit.data, prepareFrontMatter({...data}));

const { separator } = yfmSplit;
const jsonMode = separator[0] === ';';
Expand Down

0 comments on commit a28a585

Please sign in to comment.