hexo-theme-matery icon indicating copy to clipboard operation
hexo-theme-matery copied to clipboard

页面跳转到新标签

Open lysimportant opened this issue 2 years ago • 2 comments

打开文章会创建一个新的标签,怎么样能在原来的标签打开文章, 还有 修改主题的 的yml会报错运行不了,ctrl + z 退回也不行..

lysimportant avatar Jun 15 '22 04:06 lysimportant

可以参考hexo官方的配置说明 https://hexo.io/zh-cn/docs/configuration#%E6%96%87%E7%AB%A0

参数 描述 默认值
external_link 在新标签中打开链接 true
external_link.enable 在新标签中打开链接 true
external_link.field 对整个网站(site)生效或仅对文章(post)生效 site
external_link.exclude 需要排除的域名。主域名和子域名如 www 需分别配置 []

limitlm avatar Jun 16 '22 03:06 limitlm

根目录的 .yml new_post_name: :title.md # File name of new posts default_layout: post titlecase: false # Transform title into titlecase external_link: enable: false # 设置false还是新标签 Open external links in new tab field: site # Apply to the whole site exclude: "" filename_case: 0 render_drafts: false post_asset_folder: true relative_link: false future: true

lysimportant avatar Jun 16 '22 15:06 lysimportant