hexo-next-去掉顶部黑线 发表于 2021-02-23 更新于 2022-02-04 People who are crazy enough to think they can change the world, are the ones who do. — Apple Computers 首先启用相应的styl 12345678910111213# Define custom file paths.# Create your custom files in site directory `source/_data` and uncomment needed files below.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 打开\source\_data/styles.styl 12//添加代码:.headband {display:none;} 保存刷新一下,黑线就没有了。 1hexo clean && hexo s