metalsmith-collection-tags:金属匠集合感知的金属匠标签实现

时间:2024-05-21 10:16:11
【文件属性】:

文件名称:metalsmith-collection-tags:金属匠集合感知的金属匠标签实现

文件大小:33KB

文件格式:ZIP

更新时间:2024-05-21 10:16:11

JavaScript

金属匠标签 一个铁匠插件,用于从集合中包含的文件中为标签创建专用页面。 旨在与Metalsmith系列紧密合作。 这个插件需要从很多灵感(和它的一些逻辑) ,并从其分页行为 。 安装 $ npm install metalsmith-collection-tags 页面描述 在您的页面中: --- title: This is page with tags tags: tagged, page, metalsmith, plugin --- Hello World 通过配置handle选项,可以为标签使用不同的handle 。 tags是默认设置。 如果您使用的是车把或类似的模板引擎,则由于这些模板程序如何合并文件数据和全局元数据,因此为标签使用不同的句柄很有用。 (也就是说, file.tags将覆盖metadata.tags 。)这具有重载tags prop的含义的可爱副作用,


【文件预览】:
metalsmith-collection-tags-master
----.eslintrc(1KB)
----lib()
--------index.js(3KB)
----.codeclimate.yml(118B)
----test()
--------fixtures()
--------index.js(8KB)
----README.md(4KB)
----.gitignore(22B)
----package.json(979B)

网友评论