{"id":3260,"date":"2021-08-25T10:59:05","date_gmt":"2021-08-25T10:59:05","guid":{"rendered":"https:\/\/helpdesk.spider-themes.net\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/"},"modified":"2021-08-25T10:59:05","modified_gmt":"2021-08-25T10:59:05","slug":"creating-your-first-post-in-jekyll","status":"publish","type":"docs","link":"https:\/\/mantra4money.com\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/","title":{"rendered":"Creating your first post in Jekyll"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Create Post File<\/h2><p>To create a new post, you can create a new markdown file inside the <span class=\"has-inline-color has-vivid-green-cyan-color\"><code>_posts<\/code> <\/span>directory by following the recommended file naming format:<\/p><pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-green-cyan-color\">YEAR-MONTH-DAY-title.MARKUP<\/span><\/code><\/pre><p>Where <code>YEAR<\/code> is a four-digit number, <code>MONTH<\/code> and <code>DAY<\/code> are both two-digit numbers, and <code>MARKUP<\/code> is the file extension representing the format used in the file. For example, the following are examples of valid post filenames:<\/p><pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-green-cyan-color\">2011-12-31-new-years-eve-is-awesome.md\r\n2012-09-12-how-to-write-a-blog.md<\/span><\/code><\/pre><h2 class=\"wp-block-heading\">Post Front Matter<\/h2><p>Post requires front matter, everything in between the first and second \u2014 are part of the YAML Front Matter, and everything after the second \u2014 will be rendered with Markdown and show up as \u201cContent\u201d. The following is a post file with different configurations you can add as example:<\/p><pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-green-cyan-color\">---\r\nlayout: post\r\ntitle: How To Travel On Low Budget<\/span>\r\n<span class=\"has-inline-color has-vivid-green-cyan-color\">author: Indigo Violet\r\navatar: <em>img\/blog-classic\/author_4.jpg<\/em>\r\ncategory: &#91;Travel]\r\ntimeToRead: 18 Min Read\r\npost_img: <em>img\/blog-classic\/classic_03.jpg<\/em>\r\n---<\/span>\r\n<\/code><\/pre><p>You can rebuild the site in many different ways, but the most common way is to run <code>bundle exec jekyll serve<\/code>, which launches a web server and auto-regenerates your site when a file is updated.<\/p><p>To keep things more organized, add post images to <code>\/img<em>\/<\/em>blog-classic\/<\/code> directory<\/p>","protected":false},"excerpt":{"rendered":"<p>Create Post File To create a new post, you can create a new markdown file inside the _posts directory by following the recommended file naming format: Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and MARKUP is the file extension representing the format used in the file. For example, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3225,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-3260","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/docs\/3260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/comments?post=3260"}],"version-history":[{"count":0,"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/docs\/3260\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/docs\/3225"}],"wp:attachment":[{"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/media?parent=3260"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/mantra4money.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=3260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}