众所周知,Hexo 会自动将 source 文件夹下的所有 .md 与 .html
文件渲染。但有的时候,这会造成很大的问题。比如我写了个 README.md
文件,或者我想在根目录下添加一个 html 文件(比如谷歌用于验证网站的 html
文件),他们都会在 hexo g
时候被渲染。如果我们把这些文件直接放在 public
文件夹下,那么他们就不会被渲染,但是当我们执行了 hexo clean
之后,这些文件就会被删除。我们希望能够把这些文件放在我们的 source
文件夹下,每次 hexo g 的时候被拷贝到
public 文件夹下而不被渲染。
# --------------------------------------------------------------- # Menu Settings # ---------------------------------------------------------------
# Usage: `Key: /link/ || icon` # Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-senstive. # Value before `||` delimiter is the target link, value after `||` delimiter is the name of Font Awesome icon. # When running the site in a subdirectory (e.g. yoursite.com/blog), remove the leading slash from link value (/archives -> archives). # External url should start with http:// or https:// menu: home:/||fafa-home about:/about/||fafa-user tags:/tags/||fafa-tags categories:/categories/||fafa-th archives:/archives/||fafa-archive #schedule: /schedule/ || fa fa-calendar #sitemap: /sitemap.xml || fa fa-sitemap #commonweal: /404/ || fa fa-heartbeat
sidebar: # Sidebar Position. position:left #position: right
# Manual define the sidebar width. If commented, will be default for: # Muse | Mist: 320 # Pisces | Gemini: 240 width:250
# Sidebar Display (only for Muse | Mist), available values: # - post expand on posts automatically. Default. # - always expand for all pages automatically. # - hide expand only when click on the sidebar toggle icon. # - remove totally remove sidebar including sidebar toggle. display:post
# Sidebar padding in pixels. padding:30 # Sidebar offset from top menubar in pixels (only for Pisces | Gemini). offset:12 # Enable sidebar on narrow view (only for Muse | Mist). onmobile:false
# Sidebar Avatar avatar: # Replace the default image and set the url here. url:/images/head.jpg # If true, the avatar will be dispalyed in circle. rounded:true # If true, the avatar will be rotated with the cursor. rotated:false
这一部分是设置头像的
url:头像的图片保存在 themes/next/source/images 文件夹中
rounded:头像变成圆框,推荐
rotated:鼠标放上去会旋转,有点沙雕
1 2
# Posts / Categories / Tags in sidebar. site_state:true
是否展示这三个图标,方便你在 sidebar 里快速导航
image-20240928220954102
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Social Links # Usage: `Key: permalink || icon` # Key is the link label showing to end users. # Value before `||` delimiter is the target permalink, value after `||` delimiter is the name of Font Awesome icon. social: GitHub:https://github.com/yourname||fabfa-github E-Mail:mailto:yzy20040303@gmail.com||fafa-envelope #Weibo: https://weibo.com/yourname || fab fa-weibo #Google: https://plus.google.com/yourname || fab fa-google #Twitter: https://twitter.com/yourname || fab fa-twitter #FB Page: https://www.facebook.com/yourname || fab fa-facebook #StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow #YouTube: https://youtube.com/yourname || fab fa-youtube #Instagram: https://instagram.com/yourname || fab fa-instagram #Skype: skype:yourname?call|chat || fab fa-skype
社交链接:自行设置即可,||后面依然是图标
有点写不动了,感觉注释很详细,可以跟着注释去做
设置右上角 Github 图标
1 2 3 4 5 6
# `Follow me on GitHub` banner in the top-right corner. github_banner: enable:true permalink:https://github.com/DreamKongcheng title:FollowmeonGitHub