默认配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
head: '<script> console.log("Hello hexo-theme-wang"); </script>'
avatar: src: images/avatar.webp isround: true
menu: Home: / ||home Archives: /archives ||archives Categories: /categories || categories Tags: /tags || tags About: /about || about Links: /links || links RSS: /atom.xml || rss Travelling: https://www.travellings.cn/go.html || train
social_links: Github: https://github.com/xingwangzhe || github Email: mailto:xingwangzhe@outloock.com || envelope
search: enable: false path: /search.xml
time: show_seconds: true
comments: enable: false serverURL: ''
friend_links: - name: 姓王者 link: https://xingwangzhe.fun/ img: https://i.ibb.co/vLC0cft/202406212107148.jpg description: 记录学习生活的琐事,或技术文章 - name: link: img: description:
footer_links: - name: 开往-友链接力 link: https://www.travellings.cn/go.html img: https://www.travellings.cn/assets/logo.gif - name: 阿里云支持 link: https://www.aliyun.com/minisite/goods?userCode=lmvvqvl9 img: https://i.ibb.co/h7XJkfm/LOGO.png - name: 大佬论坛 link: https://www.dalao.net/ img: https://www.dalao.net/img/dalao-svg.svg - name: BlogFinder link: https://bf.zzxworld.com/ img: https://bf.zzxworld.com/images/logo-v2.png - name: 2024-10-29-133009 link: https://storeweb.cn/ img: https://i.ibb.co/tc0z0Y5/2024-10-29-133009.png - name: 空间穿梭-随机访问BlogsClub成员博客 link: https://www.blogsclub.org/go img: https://www.blogsclub.org/images/shuttle_4.png
footer_links_text: - name: 文字链接 link:
|
详细解释
head
这个配置主要是为了方便在<head>
标签内插入想要的内容,而不是直接修改主题模板
⚠
直接在head里面插入一些来历不明的<script>
有风险,你最好知道你在做什么
比如说
avatar
这个头像的配置的路径在blog\source\images
,当然,这是自定义的
1
| Travelling: https://www.travellings.cn/go.html || train
|
你需要创建一些文件夹,
使用hexo new page name 来创建页面
这样菜单栏才会正常
导航栏菜单, 用 || 隔开,前面是菜单名称,后面是图标名称,位置在source/images/menu_ico
,默认后缀是SVG格式
\x7e~我懒,所以请博主自定义图标~~
social_links
1
| Github: https://github.com/xingwangzhe || github
|
展示社交媒体链接 前面是名称,后面是图标名称 位置在source/images/social_links
,默认后缀是SVG
我懒,所以请博主自定义图标
search
需要安装hexo-generator-searchdb
theme-next/hexo-generator-searchdb: Seach data generator plugin for Hexo.
选择是否开启,menu里面的默认search就是这个
💡
这个是借鉴了hexo-next的具体实现方法,感谢Next
time
显示秒数,略
是否开启评论区,详情请访问Waline官网:https://waline.js.org,这里不再描述
其他的配置已经详实列出,此处不再赘述