0.0.3 • Published 3 years ago

hexo-qidaink-fcircle v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

自用友链朋友圈插件

本插件仅为方便自己学习使用(本想好好学习一番,可惜,没看懂,心态就很崩😭),如有需求,还请使用原作者插件。

NexT主题友链朋友圈配置

在店长的butterfly主题的基础上进行修改,移植到NexT主题。不过要注意的是,依然只能获取原api支持的那些主题。

  • 在主题配置文件菜单配置栏添加以下信息
friendscircle: /friendscircle/ || fas fa-user-friends
  • 在站点配置文件中添加以下配置
fcircle:
  enable: true          # 【必选】由于使用生成器创建页面,若这里为false,则无该页面,会一直加载
  requests_url: ""      # 【必选】添加自己的友链朋友圈 api 
  # 【必选】添加自己的友链朋友圈 api 
  fcircle_custom_css: "https://unpkg.com/browse/hexo-qidaink-fcircle@latest/friendscircle/fcircle-custom.css"
  front_matter:
    title: 欢迎来到我的朋友圈页面  # 【必选】由于使用生成器创建页面,这里还是需要一个标题的
    comments: false            # 【可选】评论系统,看自己需不需要吧

hexo-butterfly-fcircle

hexo-theme-butterfly添加 友链朋友圈

安装

  1. 安装插件,在博客根目录[Blogroot]下打开终端,运行以下指令:

    npm install hexo-butterfly-fcircle --save
  2. 添加配置信息 在站点配置文件_config.yml或者主题配置文件_config.butterfly.yml中添加

      # fcircle
      # see https://zfe.space/friendcircle/
      # see https://akilar.top/posts/8480b91c/
      fcircle:
        enable: true #控制开关
        apiurl: https://hexo-circle-of-friends-api.vercel.app/api #api地址
        maxnumber: 20 #【可选】页面展示文章数量
        addnumber: 10 #【可选】每次加载增加的篇数
        opentype: '_blank' #【可选】'_blank'打开新标签,'_self'本窗口打开,默认为'_blank'
        nofollow: true #【可选】开启禁止搜索引擎抓取,默认开启
        preload: #【可选】加载动画图片链接
        css: #【可选】开发者接口,自定义css链接
        js: #【可选】开发者接口,自定义js链接
        path: #【可选】fcircle的路径名称。默认为 fcircle,生成的页面为 fcircle/index.html
        front_matter: #【可选】fcircle页面的 front_matter 配置
          title: 朋友圈
          comments: false
  3. 参数释义

    参数备选值/类型释义
    enabletrue/false控制开关
    apiurlURLapi链接,配置教程参看基于 hexo 的友链朋友圈
    maxnumbernumber【可选】填写阿拉伯数字,页面展示文章数量,默认20
    addnumbernumber【可选】填写阿拉伯数字,每次加载增加的篇数,默认10
    opentype'_blank''_self'【可选】'_blank'新标签打开,'_self'本窗口打开,默认为'_blank'
    nofollowtrue/false【可选】开启禁止搜索引擎抓取,默认开启
    preloadURL【可选】加载动画图片链接
    cssURL【可选】开发者接口,自定义css链接
    jsURL【可选】开发者接口,自定义js链接
    pathstring【可选】字符串,fcircle的路径名称。默认为 fcircle,生成的页面为 fcircle/index.html
    front_matterobject【可选】写法见上文示例,fcircle页面的 front_matter 配置
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago