![]() ![]() For example: $ hexo new photo "My Gallery" When creating posts, Hexo will build files based on the corresponding file in scaffolds folder. You can add the -draft option when running Hexo or enable the render_drafts setting in _config.yml to render drafts. $ hexo publish ĭrafts are not displayed by default. publish works in a similar way to the new command. You can use the publish command to move drafts to the source/_posts folder. Posts initialized with this layout are saved to the source/_drafts folder. Previously, we mentioned a special layout in Hexo: draft. Post title (lower case, with spaces replaced by hyphens) ![]() You can use the following placeholders: Placeholder For example, :year-:month-:day-:title.md will prefix filenames with the post creation date. You can edit the new_post_name setting in _config.yml to change the default filename. Filenameīy default, Hexo uses the post title as its filename. If you don’t want an article (post/page) to be processed with a theme, set layout: false in its front-matter. Newly created posts are saved to the source/_posts folder. Files created by each of them is saved to a different path. There are three default layouts in Hexo: post, page and draft. ![]() You can change the default layout by editing the default_layout setting in _config.yml. Post is the default layout, but you can supply your own. To create a new post or a new page, you can run the following command: $ hexo new ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |