Open noraj opened 8 years ago
@shark-oxi use hexo publish 'install-ubuntu-from-usb-stick'
to publish you draft, no need file ext.
Fail :
Success :
But what happen is I have a file.html and a file.mkd and I do hexo publish file
?
Stale block
I think the hexo publish
only seek the .md files. Have you tried the scenario you proposed?
But what happen is I have a file.html and a file.mkd and I do
hexo publish file
?
@NoahDragon This take the .html
.
@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