目录
  1. 1. 常用命令
    1. 1.1. Create a new post
  • 根据Butterfly文档进行配置
    1. 1. 已完成
      1. 1.1. 主页文章节选
      2. 1.2. 文章版权
      3. 1.3. post的img
      4. 1.4. note的示例效果预览
        1. 1.4.1. Header
        2. 1.4.2. Default Header
        3. 1.4.3. Primary Header
        4. 1.4.4. Info Header
        5. 1.4.5. Success Header
        6. 1.4.6. Warning Header
        7. 1.4.7. Danger Header
        8. 1.4.8. No icon note
        9. 1.4.9. Codeblock in note
        10. 1.4.10. Lists in note
        11. 1.4.11. Table in Note
      5. 1.5. gallery相册的效果预览
      6. 1.6. 文章置顶
      7. 1.7. 3.29-32完成
      8. 1.8. 分享
    2. 2. 文档之外的功能
      1. 2.1. 改进
  • 基于Butterfly的建站日志

    常用命令

    Create a new post

    $ hexo clean
    $ hexo g
    $ hexo d // 部署到github
    $ hexo s

    根据Butterfly文档进行配置

    文档网址:hexo-butterfly文档

    已完成

    主页文章节选

    主页文章节选只支持自动节选和文章页description两种,此处设置为文章页description,关闭了自动节选,因为文字和代码块等的显示可能因此导致不正常。

    文章版权

    尚未设置,请参考文档的3.7-3.11

    link: Butterfly文档

    post_copyright:
    enable: true
    license: CC BY-NC-SA 4.0
    license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/

    post的img

    现在通过Typora+iPic上传图片为微博图片

    note的示例效果预览

    点击这里查看note官方文档

    (without define class style)

    Default Header

    Welcome to Hexo!

    Primary Header

    Welcome to Hexo!

    Info Header

    Welcome to Hexo!

    Success Header

    Welcome to Hexo!

    Warning Header

    Welcome to Hexo!

    Danger Header

    Welcome to Hexo!

    No icon note

    Note without icon: note info no-icon

    note info, note info, note info
    note info, note info, note info
    note info, note info, note info

    Codeblock in note

    code block in note tag
    code block in note tag
    code block in note tag

    Lists in note

    • ul
    • ul
      • ul
      • ul
    • ul
    1. ol
    2. ol
      1. ol
      2. ol
    3. ol

    Table in Note

    12
    34
    56
    78

    gallery相册的效果预览

    文章置顶

    在想要置顶的markdown的文章的title中加一个属性:

    ---
    title: xxxx
    tags:
    - xxx
    date: 2018-08-08 08:08:08
    top: true
    ---

    3.29-32完成

    出现一个很奇怪的bug,运行hexo clean & hexo g后public下的index.html就消失了,目前不知道哪里出了问题只能手动添加一下index.html再hexo s了

    又看了一下,hexo clean的时候会删除整个public文件夹,hexo g的时候又会重新生成,但是没有index.html了,也不报错。。。

    啊我个傻子,原因是配置文章置顶功能的时候,要先npm uninstall hexo-generator-index –save 然后 npm install hexo-generator-index-pin-top –save。
    我只做了第一步。。。。。。。

    个傻子,学会了认真看文档+版本管理QAQ

    分享

    分享弄完了,push一下

    文档之外的功能

    看着ffgg的加了一只狗狗,我们姑且叫他小咕

    ffgg的加密不能用,会与目录冲突,先放着

    评论不能加,蹲一波dalao的回复。找到一篇博主的文章,但还是失败了
    【Valine评论设置——基于next】

    改进

    1.这个Sakura主题的blog好好看!!!!
    Sakura

    喜欢鼠标、喜欢返回顶部和里面的代码!要是能八一八就好惹~

    2.配置文件的
    选择【Valine】作为评论服务商。
    注册完了但是失败。。。有空再调一下吧

    搜索的Algolia没有弄,网站验证下次再说,不想搞,不想被发现QAQ
    footer背景没弄,因为没找到合适的
    PWA失败,再说吧

    3.加一下音视频
    加密继续,参考ffgg的配置,多看看别人的blog

    文章作者: 桔子邮差
    文章链接: http://yoursite.com/2019/11/10/%E5%9F%BA%E4%BA%8EButterfly%E7%9A%84%E5%BB%BA%E7%AB%99%E6%97%A5%E5%BF%97/
    版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 微木斋
    打赏
    • 微信
    • 支付寶

    评论