Closed suzhigao closed 4 years ago
请问为什么友链friend下的index.md不可以更新友链,而且我的根目录和主题的配置文件更改会影响友链界面
1.根目录_config.yml
# Hexo Configuration ## Docs: http://hexo.io/docs/configuration.html ## Source: https://github.com/hexojs/hexo/ # Site title: ☆I wana be your hero☆ # avatar: https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/avatar/avatar.png logo: https://s2.ax1x.com/2020/02/12/17cl6g.jpg #https://img.vim-cn.com/d1/4911906ca05da0805cb6dc3e5b44f3d4a4e8a3.png subtitle: 帅并努力着…… description: author: 男神代言人 timezone: language: - zh-CN - en - zh-HK - zh-TW # URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url: http://suzhigao66.top/ root: / permalink: :title/ permalink_defaults: # Directory source_dir: source public_dir: public tag_dir: blog/tags archive_dir: blog/archives category_dir: blog/categories code_dir: downloads/code i18n_dir: :lang skip_render: # Writing new_post_name: :title.md # File name of new posts default_layout: post titlecase: false # Transform title into titlecase external_link: true # Open external links in new tab filename_case: 0 render_drafts: false post_asset_folder: false relative_link: false future: true highlight: enable: true line_number: true auto_detect: false tab_replace: # Category & Tag default_category: uncategorized category_map: tag_map: # Date / Time format ## Hexo uses Moment.js to parse and display date ## You can customize the date format as defined in ## http://momentjs.com/docs/#/displaying/format/ date_format: 'YYYY-MM-DD dddd' time_format: HH:mm:ss # Pagination ## Set per_page to 0 to disable pagination per_page: 10 pagination_dir: page # Extensions ## Plugins: http://hexo.io/plugins/ ## Themes: http://hexo.io/themes/ theme: material-x use_cdn: true # Deployment ## Docs: http://hexo.io/docs/deployment.html deploy: type: git repo: https://github.com/suzhigao/suzhigao.github.io.git branch: master message: update # >> 主题配置 --------------------------------------------------------------------- # 全局导入 import: meta: - "<meta name='theme-color' content='#FFFFFF'>" - "<meta name='msapplication-TileColor' content='#1BC3FB'>" - "<meta name='msapplication-config' content='https://cdn.jsdelivr.net/gh/xaoxuu/cdn-favicon@19.9.6/browserconfig.xml'>" link: - "<link rel='shortcut icon' type='image/x-icon' href='https://cdn.jsdelivr.net/gh/xaoxuu/cdn-favicon@19.9.6/favicon.ico'>" - "<link rel='icon' type='image/x-icon' sizes='32x32' href='https://cdn.jsdelivr.net/gh/xaoxuu/cdn-favicon@19.9.6/favicon-32x32.png'>" - "<link rel='apple-touch-icon' type='image/png' sizes='180x180' href='https://cdn.jsdelivr.net/gh/xaoxuu/cdn-favicon@19.9.6/apple-touch-icon.png'>" - "<link rel='mask-icon' color='#1BC3FB' href='https://cdn.jsdelivr.net/gh/xaoxuu/cdn-favicon@19.9.6/safari-pinned-tab.svg'>" - "<link rel='manifest' href='https://cdn.jsdelivr.net/gh/xaoxuu/cdn-favicon@19.9.6/site.webmanifest'>" # script: leancloud: app_id: '*******' #你的appId app_key: '******' #你的appKey #卡通 live2d: enable: true scriptFrom: local pluginRootPath: live2dw/ pluginJsPath: lib/ pluginModelPath: assets/ tagMode: false log: false model: use: live2d-widget-model-wanko display: position: left width: 120 height: 210 mobile: show: true react: opacity: 0.6
2.主题_config.yml
############################### 基本信息 ############################### info: name: Material X docs: https://xaoxuu.com/wiki/material-x/ cdn: # 要使用CDN,请在根目录的config文件中写上 use_cdn: true css: style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@20.2.11/css/style.css js: app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@20.2/js/app.js search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@20.2/js/search.js volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1.0.6/js/volantis.min.js commentTyping: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@20.2/js/commentTyping.js ############################### 主题风格 ############################### # style: material # material: 导航栏和标题栏背景是主题色 style: pure # pure: 导航栏和标题栏背景是白色 ############################### 服务开关 ############################### commentTyping: false # 文本框打字机特效 scrollreveal: true # 页面滚动显示动画 nodewaves: true # 按钮点击效果 busuanzi: true # 访问量统计 # fastclick: true ############################### 默认值 ############################### # 音乐控件的默认配置,如果sidebar或者page里没有提供,就取这里的参数 music: enable: true # 是否启用 color: '#1BCDFC' # 主题色 mode: circulation # random (随机) single (单曲) circulation (列表循环) order (列表) server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗) type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索) id: 2615636388 # 歌曲/专辑/歌单 ID volume: 0.7 # 音量, 0~1 autoplay: false # 自动播放 # 友链页头像占位图 avatar_placeholder: https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/avatar/avatar.png # 日期格式 http://momentjs.com/docs/ date_format: 'YYYY-MM-DD' # 文章发布日期的格式 updated_date_format: 'll' # 文章更新日期的格式 # 文章字数统计、阅读时长,默认关闭,开启需要安装插件: npm i --save hexo-wordcount word_count: false # 幻灯片 backstretch: position: full # cover: 封面背景 full: 整个网页背景 duration: 6000 # 持续时间(毫秒) fade: 2500 # 渐变(毫秒) images: - https://i.loli.net/2020/02/08/HNuVoted2mUxILl.jpg - https://i.loli.net/2020/02/08/dNJyR4LHtarTqPu.jpg - https://i.loli.net/2020/02/08/yXx4GwgZYdi81Qs.jpg - https://i.loli.net/2020/02/08/RP7JpGvWaCYfuB6.jpg ############################### 自定义 ############################### # page的封面 cover: scheme: search # 后期将会提供多种封面方案 height: half # full(默认值): 首页封面占据整个第一屏幕,其他页面占半个屏幕高度, half: 所有页面都封面都只占半个屏幕高度 title: 男神 # logo: assets/logo.png # logo和title只显示一个,若同时设置,则只显示logo # search_placeholder: '搜索' # 主页封面菜单 features: - name: 博文 icon: fas fa-rss url: / - name: 留言板 icon: fas fa-code-branch url: message-boards/ - name: 友链 icon: fas fa-link url: friends/ rel: nofollow - name: 关于 icon: fas fa-info-circle url: about/ rel: nofollow # 桌面端导航栏菜单 menu_desktop: - name: 主页 icon: fas fa-grin url: / - name: 分类 icon: fas fa-folder-open url: categories/ rel: nofollow - name: 标签 icon: fas fa-hashtag url: tags/ rel: nofollow - name: 归档 icon: fas fa-archive url: blog/archives/ rel: nofollow # 手机端导航菜单(从右上角的按钮点击展开) menu_mobile: - name: 近期文章 icon: fas fa-clock url: / - name: 文章归档 icon: fas fa-archive url: blog/archives/ rel: nofollow - name: 开源项目 icon: fas fa-code-branch url: projects/ - name: 我的友链 icon: fas fa-link url: friends/ rel: nofollow - name: 主题文档 icon: fas fa-book url: https://xaoxuu.com/wiki/material-x/ rel: nofollow - name: 关于小站 icon: fas fa-info-circle url: about/ rel: nofollow layout: # 文章列表(主页、自定义的列表)布局 posts: # 列表中每一篇文章的meta信息 meta: [title, author, date, categories, wordcount, top] # 列表类页面的侧边栏 sidebar: [author, plain, list, grid, category, tagcloud, music] # 文章页面布局 article: # 文章页面主体元素,你也可以在页面的Front-matter中设置 body: [article, comments] # 默认的meta信息,文章中没有配置则按照这里的配置来显示,设置为false则不显示 # 其中,title只在header中有效,music和thumbnail无需在这里设置,文章中有则显示 # 如果tags放置在meta.header中,那么在post列表中不显示(因为卡片下方已经有了) header: [title, author, date, categories, counter, wordcount, top] footer: [updated, tags, share] # 文章页面的侧边栏 sidebar: [author, plain, toc, grid, category, tagcloud, list, related_posts] # 其他的页面布局暂时等于文章列表 # 侧边栏小部件配置 sidebar: - widget: author avatar: https://s2.ax1x.com/2020/02/02/1YPnhR.jpg jinrishici: true social: true - widget: plain icon: fas fa-file title: 公众号 body: '![男神爱coding](https://s2.ax1x.com/2020/02/12/17g7MF.jpg)' - widget: toc - widget: grid icon: fas fa-map-signs title: 站内导航 rows: - name: 近期文章 icon: fas fa-clock url: / - name: 文章归档 icon: fas fa-archive url: blog/archives/ rel: nofollow - name: 开源项目 icon: fas fa-code-branch url: projects/ - name: 我的友链 icon: fas fa-link url: friends/ rel: nofollow - name: 主题文档 icon: fas fa-book url: https://xaoxuu.com/wiki/material-x/ rel: nofollow - name: 关于小站 icon: fas fa-info-circle url: about/ rel: nofollow - widget: category more: icon: fas fa-expand-arrows-alt url: blog/categories/ rel: nofollow - widget: tagcloud icon: fas fa-tags more: icon: fas fa-expand-arrows-alt url: blog/tags/ rel: nofollow # - widget: related_posts # 需要安装插件 npm i -S hexo-related-popular-posts - widget: music icon: fas fa-compact-disc title: "最近在听" more: icon: far fa-heart url: https://music.163.com/#/user/home?id=1619515628 rel: external nofollow noopener noreferrer target: _blank server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗) type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索) id: 3175833810 # 歌曲/专辑/歌单 ID - widget: list icon: fas fa-thumbs-up title: 强烈推荐 rows: - name: Hexo脚本(Mac) url: https://xaoxuu.com/wiki/hexo.sh/ - name: 图床脚本(Mac) url: https://xaoxuu.com/wiki/vim-cn.sh/ - name: 图片在线压缩 url: https://yasuotu.com - name: 生成Favicon url: https://realfavicongenerator.net - name: 简历主题 url: https://mxclub.github.io/resume/ # 社交信息 social: - icon: fas fa-rss url: atom.xml - icon: fas fa-envelope url: mailto:1763489853@qq.com - icon: fab fa-github url: https://github.com/suzhigao - icon: fab fa-weibo url: https://weibo.com/5275904826/profile?rightmod=1&wvr=6&mod=personinfo&is_all=1 - icon: fab fa-twitter url: https://twitter.com/suzhigao1 # 分享按钮 # 当id为qrcode时需要安装插件 npm i -S hexo-helper-qrcode share: - id: qq name: QQ好友 img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qq.png - id: qzone name: QQ空间 img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qzone.png - id: qrcode name: 微信 img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/wechat.png - id: weibo name: 微博 img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/weibo.png - id: qrcode name: QRcode img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qrcode.png footer_post: '<center>感谢阅读!!!</center>' # footer: '网页页脚文字,支持[markdown](/)' # footer_post: '<center>这是文章页脚,可以设置打赏图片:<br><fancybox>![](https://img.vim-cn.com/4a/5f8244a7c6e1e069a781b84ed11008e7955e16.png)</fancybox></center>' ############################### 评论系统 ############################### # disqus_shortname: 要使用哪个请复制到根目录配置文件! # livere_uid: 要使用哪个请复制到根目录配置文件! # gitalk: 要使用哪个请复制到根目录配置文件! # clientID: 你的clientID # clientSecret: 你的clientSecret # repo: 你的repo名 # owner: 你的GitHub名 # admin: [] 至少填写你的GitHub名 # leancloud: 要使用哪个请复制到根目录配置文件! # app_id: 你的appId # app_key: 你的appKey ############################### 杂项,请勿删除 ############################### #valine配置 valine: enable: true # 如果你想用Valine评论系统,请设置enable为true volantis: false # 是否启用volantis版本(禁止匿名,增加若干贴吧、QQ表情) # 还需要在根目录配置文件中添加下面这三行内容 # leancloud: # app_id: 你的appId # app_key: 你的appKey guest_info: nick,mail,link #valine comment header info placeholder: 快来评论吧~ # valine comment input placeholder(like: Please leave your footprints ) avatar: mp # gravatar style https://valine.js.org/avatar pageSize: 10 # comment list page size verify: false # valine verify code (true/false) notify: true # valine mail notify (true/false) lang: zh-cn highlight: true # 搜索配置 search: enable: true service: hexo # 类型:google, algolia, azure, baidu 默认 hexo # 选择你选取的搜索服务后,复制相应的配置到根目录配置文件中 # google: # apiKey: # engineId: # algolia: # applicationID: # apiKey: # indexName: # azure: # serviceName: # indexName: # queryKey: # baidu: # apiId: # Less渲染 less: compress: true cnzz: true
还没找到解决办法,我现在是在friend的html文件下直接更新友链
你重新安装一下最新主题看看
请问为什么友链friend下的index.md不可以更新友链,而且我的根目录和主题的配置文件更改会影响友链界面
1.根目录_config.yml
2.主题_config.yml