Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permalinks :title is file path #881

Closed
m80126colin opened this issue Oct 14, 2014 · 3 comments
Closed

permalinks :title is file path #881

m80126colin opened this issue Oct 14, 2014 · 3 comments

Comments

@m80126colin
Copy link

I found that :title, a variable of permalinks, is NOT only a filename but also a file path under source/ if you categories your markdown files into several directories.

@Xuanwo
Copy link
Contributor

Xuanwo commented Apr 11, 2015

What do you mean?

@nt3rp
Copy link
Contributor

nt3rp commented May 6, 2015

I might be having a similar problem as @m80126colin (though I am not entirely sure).

One might have settings as follows:

new_post_name: :year-:month-:day-:title.md # File name of new post
permalink: :year/:month/:day/:title/

In this case, new files are created as expected (e.g. hexo new "Hello World" creates 2015-01-01-hello-world.md)

However, what is not expected (or rather, isn't clear how to change the configuration to support this) is that the permalink will not be correct.

Expected:

<root>/2015/01/01/hello-world

Actual:

<root>/2015/01/01/2015-01-01-hello-world

I had a blog previously running on Hexo 2.x that worked with this setup, but it seems something has change in Hexo 3.

@leesei
Copy link
Member

leesei commented Mar 7, 2016

@nt3rp @tommy351 I think we need to update the doc for these config and variables in Post

As a side question, how permalink is resolved from all these?
Several permalink related issues could be resolved once we get these cleared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants