type
status
date
评分
category
icon
password
Category
标签
Last edited by
创建时间
Nov 6, 2024 07:56 AM
日期
状态
slug
上次编辑时间
Nov 6, 2024 07:56 AM
- 自定义样式、自定义脚本您可以自行决定站点的样式和执行的脚本,NotionNext支持两种方式引入您的css 和 js :方法一:外部文件引入blog.config.js 中 配置:CUSTOM_EXTERNAL_JS 和CUSTOM_EXTERNAL_CSS 即可bash// 自定义外部脚本,外部样式CUSTOM_EXTERNAL_JS: [''], // e.g. ['http://xx.com/script.js','http://xx.com/script.js']CUSTOM_EXTERNAL_CSS: [''], // e.g. ['http://xx.com/style.css','http://xx.com/style.css']BashCopy方法二:内部自定义 /public/css/custom.css 文件可以直接自定义样式。 /public/js/custom.js 文件中编写脚本将被自动引入页面。每个主题的自定义css文件,例如 /public/css/theme-hexo.css❓若引入js和css不能满足您的需求?试试参考《NotionNext二次开发手册》进行自定义开发。
- Author:百梳姐姐
- URL:https://blog.xn--s1r072bn2af1eq9u.space//article/136626e0-d7c2-81af-83f7-e9749ee7b130
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!