hexo-directory-category插件的工作原理很简单:它根据文章文件的目录结构自动为文章分配类别。具体来说,插件会检查文章文件所在的文件夹名称,并将其作为该文章的类别。 例如,如果你的文章文件位于sources/_posts/technology/hexo/目录下,hexo-directory-category插件将自动为这篇文章添加一个名为technology的类别,以及一个...
“hexo”: { “version”: “4.2.1” }, “dependencies”: { “hexo”: “^4.2.0”, “hexo-deployer-git”: “^2.1.0”, “hexo-deployer-rsync”: “^1.0.0”, “hexo-generator-archive”: “^1.0.0”, “hexo-generator-category”: “^1.0.0”, “hexo-generator-feed”: “^2.2.0”, ...
category_per_img category 子页面的 top_img,可配置每个 category 的 top_img 修改主题配置文件_config.butterfly.yml。 代码语言:javascript 代码运行次数:0 运行 AI代码解释 index_img: xxx.png 其它页面 (tags/categories/自建页面)和文章页的top_img,请到对应的 md 页面设置front-matter中的top_img。 3.2....
执行npx hexo generate在构建博客的时候触发hexo-auto-category插件的自动矫正categories功能; 检查文章中的categories是否正确; 添加git 工作区变更,并提交并推送代码到 github。 为了简化这些工作,我们可以使用 git hook,在我们每次执行commit前都自动运行npx hexo generate触发自动生成categories的行为,并将生成后的变更自...
在hexo默认主题中,存在post(文章详情页)、page(导航标签页)、archive(归档页)、index(首页)、category(类别页)以及tag(标签页)这几种布局和一个总的layout布局。 每个主题的布局文件在主题的layout文件夹下,不同主题后缀可能不同,有的是pug。 至于主题的代码我这里就不再深入赘述了,就是描述如何构建html模块的文...
.category-all-title { font-weight: 700; font-size: 24px; text-align: center; } .category-list-item:after { content: ''; clear: both; display: table; } .category-list-count { float: right; margin-left: 5px; } .category-list-count:before { ...
Category generator forHexo. Installation $ npm install hexo-generator-category --save Options category_generator:per_page:10order_by:-date per_page: Posts displayed per page. (0 = disable pagination) order_by: Posts order. (Order by date descending by default) ...
category} | ${locale.COMMON.CATEGORY} | ${ siteInfo?.title || '' }`, description: siteInfo?.description, slug: 'category/' + props.category, image: siteInfo?.pageCover, type: 'website' } return <ThemeComponents.LayoutCategory {...props} meta={meta} /> } export async function ...
<% site.categories.map(function(category){ %> <%= category.name %> <% category.posts.map(function(post){ %> <%= post.name %> <% }) %> <% }) %> | 变量 | 描述 | 类型 | | :--- | :--- | :--- | | post.title | 页面标题 | string | | post.date |...
permalink: :year/:category/:abbrlink/ permalink_defaults: pretty_urls: trailing_index: true # 设置为false移除'index.html' trailing_html: true # 设置为false移除'.html' abbrlink: alg: crc32 # 算法:crc16(default) and crc32 rep: hex # 进制:dec(default) and hex ...