Next主题8.x使用记录

Next主题8.x使用记录

添加网易云音乐

  1. 去网页版网易云生成链接代码,放到
C:\Users\wangzihan\Desktop\blog1\themes\next\layout\_macro\sidebar.njk 

文件中,记得放中间 些的位置,放末尾没用。

版面透明

C:\Users\wangzihan\Desktop\blog1\themes\next\source\css\_schemes\Gemini\index.styl

文件下,第29行,改rgba(255,255,255,0.7)

头像旋转

主题配置文件下:

avatar:
  # Replace the default image and set the url here.
  url: /images/favicon-32x32-next.png
  # If true, the avatar will be displayed in circle.
  rounded: true #这个是圆形展示
  # If true, the avatar will be rotated with the cursor.
  rotated: true #这个是靠近旋转

背景设置

1.背景图

C:\Users\wangzihan\Desktop\blog1\source\_data\style1.styl

目录下,打开文件style1.styl,编辑图片地址,设置背景图片的参数
第20行有关,有关背景的都在此配置,

custom_file_path:
  #head: source/_data/head.njk
  #header: source/_data/header.njk
  #sidebar: source/_data/sidebar.njk
  #postMeta: source/_data/post-meta.njk
  #postBodyEnd: source/_data/post-body-end.njk
  #footer: source/_data/footer.njk
  #bodyEnd: source/_data/body-end.njk
  #variable: source/_data/variables.styl
  #mixin: source/_data/mixins.styl
  #style: source/_data/styles.styl
  style: source/_data/style1.styl
2.背景动效

文件安装在

C:\Users\wangzihan\Desktop\blog1\themes\next\source\lib\theme-next-canvas-nest

只安装了canvas_nest

canvas_nest: # 网络背景
  enable: true
  onmobile: true # display on mobile or not
  color: '0,0,0' # RGB values, use ',' to separate
  opacity: 0.5 # the opacity of line: 0~1
  zIndex: -1 # z-index property of the background
  count: 150 # the number of lines

设置为true即可运行

阅读原文

文中添加

<!-- more -->

面板娘

博客配置文件下

live2d:
  enable: true
  scriptFrom: local
  pluginRootPath: live2dw/
  pluginJsPath: lib/
  pluginModelPath: assets/
  tagMode: false
  model:
    use: live2d-widget-model-koharu  #选择哪种模型
  display: #放置位置和大小
    position: right
    width: 150
    height: 300
  mobile:
    show: true #是否在手机端显示

lived2d下载模型
使用npm命令,随后配置

 use: live2d-widget-model-koharu  #选择哪种模型

未完待续

参考这个,还有2d人物模型预览

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值