Comments (8)
@YvanZh 标题中的空格、其他符号在渲染时会被自动替换为-
。所以标题可以采用以下的形式:
## 1. Title
or
## 1-Title
而不要使用空格:
## 1 Title
会被渲染为 1-Title
from hexo-theme-indigo-plus.
我去掉了.
和空格还是跳转不了。把中文去掉之后,只有数字和英文还有空格和.
,就可以跳转。
from hexo-theme-indigo-plus.
停掉hexo server
。重新hexo clean
、hexo g
之后再启动hexo s
试试
from hexo-theme-indigo-plus.
重复试了好几次,确实是中文的锅。我特意写了一下一个英文,一个中文的标题。您帮忙看一眼:
https://yvanzh.top/2019/04/08/Paper-Notes-5/
from hexo-theme-indigo-plus.
@YvanZh 你的其他文章名称是以_
做分隔符的,TOC 直接渲染成了空格,所以不能跳转,尽量文章名都用-
分隔,且全部小写。这篇文章我用了一样的标题在本地跑中文是可以跳转的,不知道是什么原因了
from hexo-theme-indigo-plus.
@abelsu7 重新pull了一下,搞定了。应该是我倒腾的时候哪里搞出了毛病。惭愧惭愧,麻烦您了。
from hexo-theme-indigo-plus.
@ abelsu7重新拉了一下,搞定了。应该是我倒腾的时候哪里搞出了毛病惭愧惭愧,麻烦您了。
不好意思,我也遇到相同的问题,在同一个文章中,英文和数字都正常,只要是有中文,锚点就会失效。
没有序号,纯中文:
## 静态算法
[算法](#静态算法)
请问怎么解决的?
from hexo-theme-indigo-plus.
@Monster0303 你好,时间太久,我已经记不太清楚是什么原因导致的锚点失效了。你可以先试着重新pull一下主题。
from hexo-theme-indigo-plus.
Related Issues (8)
- 关于代码块问题~ HOT 12
- 标签与分类页面渲染为关于页面 HOT 1
- 能否支持indigo的自定义页面 HOT 2
- 设置root后部分prism的js资源路径错误 HOT 1
- 求更新
- Unhandled rejection ReferenceError
- 有中文时目录生成出错,导致整个页面不显示
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-indigo-plus.