wdssmq
V2EX  ›  Hexo

「折腾」一个 hexo 插件

  •  
  •   wdssmq · May 31, 2022 · 2532 views
    This topic created in 1445 days ago, the information mentioned may be changed or developed.

    因为历史原因,已经有了一个_posts文件夹和相应的文章;

    姑且用了 git 的子模块功能实现了让 hexo 直接读取;

    「折腾」 Git Submodule 探究_电脑网络_沉冰浮水:

    https://www.wdssmq.com/post/20100710361.html


    同样因为历原因,一小部分的文章标签定义是下边这样的:

    tags:
    - tag1,tag2,tag3
    

    比起修改一波就想着写个插件自动处理;

    感觉上是弄出来了,但是感觉仍然不够优雅;

    wdssmq/hexo-split-tags: Separate tags with commas.:

    https://github.com/wdssmq/hexo-split-tags

    实际是额外读取了文章处理了一遍,加上原有的流程就会一篇文章编译两次,所以又加了一步通过标记把默认生成的文章排除掉;

    所以有没有更合适的接口直接拦截处理呢?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   901 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 20:30 · PVG 04:30 · LAX 13:30 · JFK 16:30
    ♥ Do have faith in what you're doing.