-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
hexo publish draft.md don't look at the right filename + markdown extensions #1821
Comments
@shark-oxi use |
Fail :
Success :
But what happen is I have a file.html and a file.mkd and I do |
Stale block |
I think the
|
@NoahDragon This take the |
@noraj1337 I think it is something needs to be fixed. |
Hi,
I have a markdown file
source/_drafts/install-ubuntu-from-usb-stick.mkd
and I wanted to use the commandhexo publish install-ubuntu-from-usb-stick.mkd
to publish it in mysource/_posts/
folder but I get the error :the same happened when I used
hexo publish source/_drafts/install-ubuntu-from-usb-stick.mkd
or with a markdown file with the.md
extension.As you can see at the line
Error: Draft "install-ubuntu-from-usb-stick-mkd" does not exist.
thesomething.mkd
is transformed intosomething-mkd
so the js lib doesn't find the file.And I wanted to add that in the official doc, there is no article saying which template langage renderer extension we can use. We know that Hexo support markdown, but by reading the doc we don't know if we can only use
.md
extension or if.mkd
or.markdown
extensions are supported too. And of course there is nothing in_confi.yml
to configure wich extensions are recognize or not. By reading the doc we now that markdown and html are rendered but we don't wich other lange are or not.Say me if I can help to write docs or contributing in another way.
Best regards and thans for this great hexo static website generator :)
PS : sorry for my poor english
The text was updated successfully, but these errors were encountered: