{"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:\/\/payrelay.co.ke\/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":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating your first post in Jekyll - PayRelay Kenya<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating your first post in Jekyll - PayRelay Kenya\" \/>\n<meta property=\"og:description\" content=\"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;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/\" \/>\n<meta property=\"og:site_name\" content=\"PayRelay Kenya\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PayRelayKenya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/\",\"url\":\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/\",\"name\":\"Creating your first post in Jekyll - PayRelay Kenya\",\"isPartOf\":{\"@id\":\"https:\/\/payrelay.co.ke\/#website\"},\"datePublished\":\"2021-08-25T10:59:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/payrelay.co.ke\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docy Jekyll Theme\",\"item\":\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Getting Started\",\"item\":\"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Creating your first post in Jekyll\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/payrelay.co.ke\/#website\",\"url\":\"https:\/\/payrelay.co.ke\/\",\"name\":\"PayRelay Kenya\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/payrelay.co.ke\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/payrelay.co.ke\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/payrelay.co.ke\/#organization\",\"name\":\"PayRelay Kenya\",\"url\":\"https:\/\/payrelay.co.ke\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/payrelay.co.ke\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/payrelay.co.ke\/wp-content\/uploads\/2024\/11\/Payrelay-Logo-transparent-1.png\",\"contentUrl\":\"https:\/\/payrelay.co.ke\/wp-content\/uploads\/2024\/11\/Payrelay-Logo-transparent-1.png\",\"width\":1530,\"height\":645,\"caption\":\"PayRelay Kenya\"},\"image\":{\"@id\":\"https:\/\/payrelay.co.ke\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/PayRelayKenya\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating your first post in Jekyll - PayRelay Kenya","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/","og_locale":"en_US","og_type":"article","og_title":"Creating your first post in Jekyll - PayRelay Kenya","og_description":"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;]","og_url":"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/","og_site_name":"PayRelay Kenya","article_publisher":"https:\/\/www.facebook.com\/PayRelayKenya","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/","url":"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/","name":"Creating your first post in Jekyll - PayRelay Kenya","isPartOf":{"@id":"https:\/\/payrelay.co.ke\/#website"},"datePublished":"2021-08-25T10:59:05+00:00","breadcrumb":{"@id":"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/creating-your-first-post-in-jekyll\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/payrelay.co.ke\/"},{"@type":"ListItem","position":2,"name":"Docy Jekyll Theme","item":"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/"},{"@type":"ListItem","position":3,"name":"Getting Started","item":"https:\/\/payrelay.co.ke\/index.php\/docs\/docy-jekyll-theme\/getting-started\/"},{"@type":"ListItem","position":4,"name":"Creating your first post in Jekyll"}]},{"@type":"WebSite","@id":"https:\/\/payrelay.co.ke\/#website","url":"https:\/\/payrelay.co.ke\/","name":"PayRelay Kenya","description":"","publisher":{"@id":"https:\/\/payrelay.co.ke\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/payrelay.co.ke\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/payrelay.co.ke\/#organization","name":"PayRelay Kenya","url":"https:\/\/payrelay.co.ke\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/payrelay.co.ke\/#\/schema\/logo\/image\/","url":"https:\/\/payrelay.co.ke\/wp-content\/uploads\/2024\/11\/Payrelay-Logo-transparent-1.png","contentUrl":"https:\/\/payrelay.co.ke\/wp-content\/uploads\/2024\/11\/Payrelay-Logo-transparent-1.png","width":1530,"height":645,"caption":"PayRelay Kenya"},"image":{"@id":"https:\/\/payrelay.co.ke\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PayRelayKenya"]}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/docs\/3260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/comments?post=3260"}],"version-history":[{"count":0,"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/docs\/3260\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/docs\/3225"}],"wp:attachment":[{"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/media?parent=3260"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/payrelay.co.ke\/index.php\/wp-json\/wp\/v2\/doc_tag?post=3260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}