external_link doesn't works as expected
Environment Info
Fedora 24
Node version(node -v):
v6.11.2
Your site _config.yml (Optional):
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Shiyang Wang
subtitle:
description:
author: Shiyang Wang
language:
timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://shiyang.wang
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: 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: false # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: true
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date
# 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
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: yinwang
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repository: [email protected]:shiywang/shiywang.github.io.git
branch: master
Your theme _config.yml (Optional):
# when running hexo in a subdirectory (e.g. domain.tld/blog), remove leading slashes ( "/archives" -> "archives" )
version: 2.0
# Place your favicon.ico to /source directory.
favicon: /favicon.ico
# Set default keywords (Use a comma to separate)
keywords: "My Blog Kubernetes"
# Code Highlight theme
# Available value: normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
highlight_theme: normal
menu:
Blog: /
#categories: /categories
#archives: /archives
#tags: /tags
GitHub: https:github.com/shiywang
#About: /about
# Static files
#vendors: vendors
css: css
js: js
images: images
Hexo and Plugin version(npm ls --depth 0):
npm ls --depth 0
[email protected] /home/shiywang/shiywang.github.io
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
For BUG
For question
I check the _config file there's a filed named external_link which set to false I expect the new article link when click won't be in a new tab, but actually no matter true or false I set, it still open in a new tab when I click a link of my articles.
the command I use: hexo g hexo s
For feature request
@NoahDragon any ideas ?
@shiywang I have never used this, so don't have any clue yet. I will take a look at the code to see if any weird logic.
The situation occurs to me too. By the way, I'm using the theme https://github.com/mickeyouyou/yinwang.
It depends on the theme. For example, theme NexT is using a custom helper: https://github.com/theme-next/hexo-theme-next/blob/v7.5.0/scripts/helpers/next-url.js.
https://github.com/mickeyouyou/yinwang/blob/master/layout/_partial/article.ejs#L3 Your links have a target="blank" which explains your issue
Closing as irrelevant. It's the behavior of Hexo theme.