Giter Site home page Giter Site logo

hexo-generator-index2's Introduction

Hi there 👋

  • hexo-theme-nova 主题将会迎来一波大的更新,主要为
    • 适配 hexo4, hexo5, hexo6
    • 更新文章阅读数功能,会兼容Valine,计划开发最新评论,最热文章等Widget
    • Donate会使用servless实现,使用nodejs作为代理服务,开放给其他博主使用
    • bootstrap升级到5并且去jquery化,进一步优化加载速度
  • QuickAF
    • 底层网络请求库抽取
    • 网络请求库支持OkHttp
    • 计划全面升级到Kotlin + Jetpack
    • 适配Android 8-13
    • 使用compose重写UI
  • Gradle Dependencies:新开发一款分析Gradle项目的依赖树插件,先上IntelliJ市场
    • 生成完整的依赖树
    • 查看指定构建的依赖,展示依赖树及最终计算的依赖组件
    • 高亮显示强制依赖、主动依赖、约束依赖等依赖类型
    • 支持依赖过滤

hexo-generator-index2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hexo-generator-index2's Issues

这个INFO提示怎么去掉?

xxxiMac:ian root# hexo clean --dubug
INFO  index2 generators:
INFO  [ { path: '',
    per_page: 10,
    order_by: '-date',
    layout: 'index',
    index: true },
  { path: '',
    per_page: 10,
    order_by: '-date',
    layout: 'index',
    index: false,
    include: false,
    exclude: false } ]
INFO  Deleted database.
INFO  Deleted public folder.

这是我对应的yaml配置

# 配置index2 generator,可以是数组或对象
index2_generator:
 path: ''
 per_page: 10
 order_by: -date
 include: false
 exclude: false

怎么设置首页只显示某个文件夹下的文章

使用hexo-generator-index2想要设置首页只显示某个路径下的文章,试了好几种写法都无效。

index2_generator:
  per_page: 10
  order_by: -date # 按发布时间排序
  include:
    - path /source/_post/main/  # not working

某度无果,请问path应该怎么写?

建议删除打印

很有用的插件,谢谢!

如下打印的内容可能是为开发者提供的,对使用者来说并不那么重要:

Details

image

建议将打印语句删除。

<exclude/include>not working

once i tried to load exclude/include, it did not generate index.html in public folder.
idk if it's because hexo 3.2 released and it has the same exclude/include features.
maybe you could change the name of these two?

请问如何将多个目录都设为index布局呢?

例如,在_posts目录下,有A和B两个目录,请问如何处理才能达到下面这个效果呢:
网站根目录为 / ,首页只显示 path: A,排除 path: B;
而B目录我选择通过navbar上的menu跳转过去,同时其layout也采用index。

问题出在这里: 我尝试在config中设置两个 layout: index ,但是generate之后只生成了目录A
(之所以想搞多个index是因为不想用categories)

any other configuration of layout

Is index the only configuration of layout ? When I set layout: 'categories', it was not category page,but archive page.
When I change code on generator2.js ,it didn't work.

ret = ret.concat(pagination(path, posts, {
            perPage: generator.per_page,
-            layout: [generator.layout, 'archive'],
+            layout: [generator.layout, 'categories'],
            format: paginationDir + '/%d/',
            data: opts
        }));

Should I make my own category page with feature of filter? Or it is a bug.
Hexo-theme-next I use.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.