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.
2 parents 78d518b + aabc7c9 commit 40ca101Copy full SHA for 40ca101
adapter/hexo.js
@@ -55,12 +55,13 @@ module.exports = function(post) {
55
// matter 解析
56
const parseRet = parseMatter(post.body);
57
const { body, ...data } = parseRet;
58
- const { title, created_at } = post;
+ const { title, slug: urlname, created_at } = post;
59
const raw = formatRaw(body);
60
const date = data.date || formatDate(created_at);
61
const tags = data.tags || [];
62
const props = {
63
title,
64
+ urlname,
65
date,
66
...data,
67
tags: formatTags(tags),
0 commit comments