• @guqing guqing opened issue #253 in halo-dev/docs

    目前插件开发文档较旧,需要更新

    /kind documentation

    0 0
  • @guqing guqing commented on issue #4551 in halo-dev/halo

    image

    0 0
  • @guqing guqing commented on pull request #4551 in halo-dev/halo
        if (FormType.POST !== formType) {
    
    0 0
  • @guqing guqing pushed to feature/notification in guqing/halo

    Below is the list of commits:

    0 0
  • @guqing guqing commented on pull request #4551 in halo-dev/halo

    这里主要是考虑到以后可能会加入其他的(比如分类或者标签)也按照自己的规则生成

    那后续在生成方法里添加 if 即可

    0 0
  • @guqing guqing commented on pull request #4551 in halo-dev/halo

    只有文章会使用规则生成,所以建议是

    if(FormType.POST === type) {
      // 按规则生成
    }
    return 根据名称生成
    

    不需要再定义一个数组存储

    0 0
  • @guqing guqing commented on pull request #4551 in halo-dev/halo

    倾向于将 FormType 定义为枚举

    enum FormType {
      TAG = 'Tag',
      CATEGORY = 'Category',
      POST = 'Post',
      SINGLE_PAGE = 'SinglePage'
    }
    

    使用时直接 FormType.TAG 即可,而不是在代码中到处使用字符串魔法值

    0 0
  • @guqing guqing commented on pull request #4551 in halo-dev/halo
    const onlyGenerateNameByTileList = ["TAGS", "CATEGORIES", "SINGLEPAGES"];
    
    0 0
  • @guqing guqing commented on issue #4582 in halo-dev/halo

    感觉是缺少了可滚动的提示,比如在可滚动时在右侧添加指示器
    image

    0 0
  • @guqing guqing pushed to feature/notification in guqing/halo

    Below is the list of commits:

    • Prevent basic authentication from popping up (#4556) (0098654)
    • fix: i18n key of theme remote download tab label (#4576) (31675db)
    • Merge branch 'main' into feature/notification (ff72b41)
    0 0