Sometimes (in another theme) it only generates one ../, I think it may be a cache problem. I'm not sure it's not a problem outside hexo.
How to reproduce?
init a site, using default theme landscape is OK.
put 20 articles into source/ directory
edit site configuration file _config.yml:
per_page: 10
pagination_dir: page
relative_link: true
* `hexo g`
* catch `public/archives/page/02/index.html`
The `<link>` tag of `/css/style.css` can be with a wrong relative path.
## Is the problem still there under "Safe mode"?
Under safe mode, these pages cannot be generated, so I can't be sure.
<!--
https://hexo.io/docs/commands#Safe-mode
"Safe mode" will disable all the plugins and scripts.
If your problem disappear under "Safe mode" means the problem is probably at your newly installed plugins, not at hexo.
-->
## Environment & Settings
**Node.js & npm version(`node -v && npm -v`)**
<!--
Please paste the output between two "```" provided below
-->
v16.13.1
8.3.2
**Your site `_config.yml`** (Optional)
<!--
Please paste the content of your _config.yml between two "```" provided below
-->
```yaml
Check List
Please check followings before submitting a new issue.
hexo version
to check)Expected behavior
<%- css('/css/style.css') %>
inpublic/archives/page/2/index.html
should generate:<link rel="stylesheet" href="../../../css/style.css">
Actual behavior
It actually generates:
<link rel="stylesheet" href="../../../../css/style.css">
Sometimes (in another theme) it only generates one
../
, I think it may be a cache problem. I'm not sure it's not a problem outside hexo.How to reproduce?
source/
directory_config.yml
:relative_link: true
v16.13.1 8.3.2
Your theme
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others