dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
chore: bump lint-staged from 11… (compare)
categories1 - post1,categories2 - post2
before_generate
, but it runs after before_post_render
.
before_post_render
on every site rebuild, i.e. if I run hexo server
and change anything, I’d like to have a filter that runs before everything starting generating.
Looking at moving a site from Hugo to Hexo and I'm currently a little confused about permalinks and the generated output. When I call url_for(page.path)
in a template, it correctly outputs directory/page-name
, but the output files are directory/page-name.html
. With Hugo, I would instead get directory/page-name/index.html
.
I tried building the source code for the Hexo website and it looks like it also generates directory/page-name.html
, but the served site works fine with directory/page-name
. I'm guessing it's using URL rewriting on the server to handle that.
Basically I'm wondering if there's any way to get the generated files to be directory/page-name/index.html
, but I can't seem to find any documentation around this. Is the expectation that you simply let the server do the rewrites? (I found it weird that hexo server
doesn't handle the configured permalinks that way, but that made me suspect that maybe my configuration is all wrong...)
{
and }
?hexo new --path go/hello world "hello world”
将会在 source/_posts/go/
目录下生成 hello world.md
文件,并且标题为”hello world”。但是我省略命令中的"hello world”, 让文件名生成标题该如何写呢?