前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Hexo 插件包使用

Hexo 插件包使用

作者头像
公爵
发布2022-09-28 14:35:14
3650
发布2022-09-28 14:35:14
举报
文章被收录于专栏:公爵书房公爵书房

插件包包含以下内容:

Hexo Github Canlendar

image-20220816184645846
image-20220816184645846

Hexo Magnet

image-20220816184718991
image-20220816184718991

Butterfly Article Double Row

image-20220816184824915
image-20220816184824915

Hexo History Calendar

image-20220816184858458
image-20220816184858458

一键安装命令

代码语言:javascript
复制
npm install hexo-githubcalendar hexo-magnet hexo-butterfly-article-double-row hexo-history-calendar --save

将以下内容放入博客根目录的 _config.yml

代码语言:javascript
复制
githubcalendar:
  enable: true
  priority: 3
  enable_page: /
  user: gongjuecloak
  layout:
    type: id
    name: recent-posts
    index: 0
  githubcalendar_html: '<div class="recent-post-item" style="width:100%;height:auto;padding:10px;"><div id="github_loading" style="height:100%;display: flex;align-items: center;justify-content: center;"><svg style="height:50px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"  viewBox="0 0 50 50" style="enable-background:new 0 0 50 50" xml:space="preserve"><path fill="#d0d0d0" d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z" transform="rotate(275.098 25 25)"><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite"></animateTransform></path></svg></div><div id="github_container"></div></div>'
  pc_minheight: 248px
  mobile_minheight: 0px
  color: "['#ebedf0', '#fdcdec', '#fc9bd9', '#fa6ac5', '#f838b2', '#f5089f', '#c4067e', '#92055e', '#540336', '#48022f', '#30021f']"
  api: https://python-github-calendar-api.vercel.app/api
  # api: https://python-gitee-calendar-api.vercel.app/api
  calendar_js: https://cdn.jsdelivr.net/gh/Zfour/hexo-github-calendar@1.21/hexo_githubcalendar.js
  plus_style: ""

magnet:
  enable: true
  priority: 1
  enable_page: all
  type: categories
  devide: 2
  display:
    - name: 笔记
      display_name: 公爵の笔记
      icon: 📚
    - name: 专栏
      display_name: 公爵の专栏
      icon: 🎮
    - name: 书籍
      display_name: 公爵の书籍
      icon: 🐱‍👓
    - name: C语言
      display_name: 公爵のC语言
      icon: 👩‍💻
    - name: Python
      display_name: 公爵のPython
      icon: 📒
    - name: 知识
      display_name: 公爵の知识
      icon: 💡
    - name: 分享
      display_name: 公爵の分享
      icon: 🎭
  color_setting:
    text_color: black
    text_hover_color: white
    background_color: "#f2f2f2"
    background_hover_color: "#b30070"
  layout:
    type: id
    name: recent-posts
    index: 0
  temple_html: '<div class="recent-post-item" style="width:100%;height: auto"><div id="catalog_magnet">${temple_html_item}</div></div>'
  plus_style: ""

butterfly_article_double_row:
  enable: true

history_calendar:
  priority: 4
  enable: true
  enable_page: all
  layout:
    type: class
    name: sticky_layout
    index: 0
  temple_html: '<div class="card-widget card-history"><div class="card-content"><div class="item-headline"><i class="fas fa-clock fa-spin"></i><span>那年今日</span></div><div id="history-baidu" style="height: 100px;overflow: hidden"><div class="history_swiper-container" id="history-container" style="width: 100%;height: 100%"><div class="swiper-wrapper" id="history_container_wrapper" style="height:20px"></div></div></div></div>'
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022-08-16,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Hexo Github Canlendar
  • Hexo Magnet
  • Butterfly Article Double Row
  • Hexo History Calendar
  • 一键安装命令
  • 将以下内容放入博客根目录的 _config.yml
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档