今天发了叫 hexo-front-matter-defaults 的 npm 包,是一个 Hexo 插件,用来根据 layout、collection、path 等批量给页面设置默认 front matter 变量,作用类似于 Jekyll 的 Front Matter Defaults。用 Hexo 建复杂点网站的人应该都遇到过设置页面变量的痛苦……
评论加载中...