1.0.15 • Published 2 years ago

hexo-butterfly-envelope v1.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

hexo-butterfly-envelope

hexo-theme-butterfly添加 信封样式留言板

安装

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

    npm install hexo-butterfly-envelope --save
  2. 添加配置信息,以下为写法示例 在站点配置文件_config.yml或者主题配置文件_config.butterfly.yml中添加

      # envelope_comment
      # see https://akilar.top/posts/e2d3c450/
      envelope_comment:
        enable: true #控制开关
        custom_pic:      
          cover: https://unpkg.zhimg.com/hexo-butterfly-envelope/lib/violet.jpg #信笺头部图片
          line: https://unpkg.zhimg.com/hexo-butterfly-envelope/lib/line.png #信笺底部图片
          beforeimg: https://unpkg.zhimg.com/hexo-butterfly-envelope/lib/before.png # 信封前半部分
          afterimg: https://unpkg.zhimg.com/hexo-butterfly-envelope/lib/after.png # 信封后半部分
        message: #信笺正文,多行文本,写法如下
          - 有什么想问的?
          - 有什么想说的?
          - 有什么想吐槽的?
          - 哪怕是有什么想吃的,都可以告诉我哦~
        bottom: 自动书记人偶竭诚为您服务! #仅支持单行文本
        height: #1050px,信封划出的高度
        path: #【可选】comments 的路径名称。默认为 comments,生成的页面为 comments/index.html
        front_matter: #【可选】comments页面的 front_matter 配置
          title: 留言板
          comments: true
  3. 参数释义

    参数备选值/类型释义
    enabletrue/false控制开关
    custom_pic.coverURL信笺头部图片链接
    custom_pic.lineURL信笺底部图片链接
    custom_pic.beforeimgURL信封前半部分图片链接
    custom_pic.afterimgURL信封后半部分图片链接
    messagetext信笺正文,支持多行文本,写法见上文示例
    bottomtext信笺底部信息,仅支持单行文本
    height1050px默认1050px,信封划出的高度
    pathcomments【可选】comments 的路径名称。默认为 comments,生成的页面为 comments/index.html
    front_matterobject【可选】comments页面的 front_matter 配置,写法见上文示例

截图

npm.io

1.0.15

2 years ago

1.0.14

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago