{"id":1595,"date":"2026-07-13T18:51:53","date_gmt":"2026-07-13T11:51:53","guid":{"rendered":"https:\/\/sumberlaba.com\/index.php\/2026\/07\/13\/how-to-create-a-static-site-with-jekyll-a-step-by-step-guide\/"},"modified":"2026-07-13T18:51:53","modified_gmt":"2026-07-13T11:51:53","slug":"how-to-create-a-static-site-with-jekyll-a-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/sumberlaba.com\/index.php\/2026\/07\/13\/how-to-create-a-static-site-with-jekyll-a-step-by-step-guide\/","title":{"rendered":"How to Create a Static Site with Jekyll: A Step-by-Step Guide"},"content":{"rendered":"<h1>How to Create a Static Site with Jekyll: A Step-by-Step Guide<\/h1>\n<p>Jekyll is a powerful static site generator that transforms plain text into fast, secure, and easily deployable websites. It\u2019s the engine behind GitHub Pages and perfect for blogs, portfolios, or documentation sites. With no database and simple file-based content, you get full control over your site\u2019s performance and structure.<\/p>\n<p>Before you start, ensure Ruby (version 2.5 or higher) is installed on your system. Open your terminal and install Jekyll and Bundler with <code>gem install jekyll bundler<\/code>. That&#8217;s all you need for the base setup.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/via.placeholder.com\/800x600\/4a90d9\/ffffff?text=how%20to%20create%20a%20static%20site%20with%20Jekyll\" alt=\"Article illustration\" style=\"display:block;margin:20px auto;max-width:100%;height:auto;border-radius:8px;\" \/><\/p>\n<h2>Setting Up a New Jekyll Project<\/h2>\n<p>Create a new Jekyll site by running:<\/p>\n<ul>\n<li><code>jekyll new my-site<\/code> \u2013 generates a default folder structure.<\/li>\n<li><code>cd my-site<\/code> \u2013 navigate into your project.<\/li>\n<li><code>bundle exec jekyll serve<\/code> \u2013 starts a local server at <code>http:\/\/localhost:4000<\/code>.<\/li>\n<\/ul>\n<p>Edit <code>_config.yml<\/code> to change your site title, description, and URL settings. All changes appear instantly in the browser.<\/p>\n<h2>Creating Pages and Posts<\/h2>\n<p>Content lives in Markdown files with YAML front matter. Add a new post:<\/p>\n<ul>\n<li>Create <code>_posts\/2025-03-20-my-first-post.md<\/code> with a header like <code>--- layout: post title: \"Hello World\" ---<\/code>.<\/li>\n<li>For pages, add <code>about.md<\/code> in the root with <code>layout: page<\/code>.<\/li>\n<li>Jekyll automatically converts Markdown to HTML and includes it in the navigation.<\/li>\n<\/ul>\n<h2>Customizing Layouts and Themes<\/h2>\n<p>Modify the look of your site via <code>_layouts<\/code> and <code>_includes<\/code> folders. To apply a theme:<\/p>\n<ul>\n<li>Add a gem like <code>gem \"minima\"<\/code> to your Gemfile if not already present.<\/li>\n<li>Run <code>bundle install<\/code> and set <code>theme: minima<\/code> in <code>_config.yml<\/code>.<\/li>\n<li>Override theme files by placing your own versions (e.g., <code>_layouts\/default.html<\/code>).<\/li>\n<\/ul>\n<h2>Building and Deploying Your Site<\/h2>\n<p>When ready, generate a production build:<\/p>\n<ul>\n<li>Run <code>bundle exec jekyll build<\/code> \u2013 outputs static files to the <code>_site<\/code> folder.<\/li>\n<li>Deploy that folder to any host: GitHub Pages (push to <code>gh-pages<\/code> branch or a <code>docs\/<\/code> folder), Netlify, or any static server.<\/li>\n<li>For GitHub Pages, simply push your main branch and enable Pages in the repo settings.<\/li>\n<\/ul>\n<p>Jekyll gives you a lightweight, blog-ready website in minutes. Start with a default theme, add posts and pages, then customize as you grow. Its simplicity makes it a favorite for developers and writers alike.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Create a Static Site with Jekyll: A Step-by-Step Guide Jekyll is a powerful static site generator that transforms plain text into fast, secure, and easily deployable websites. It\u2019s the engine behind GitHub Pages and perfect for blogs, portfolios, or documentation sites. With no database and simple file-based content, you get full control over &hellip; <\/p>\n","protected":false},"author":2716,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-1595","post","type-post","status-publish","format-standard","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts\/1595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/users\/2716"}],"replies":[{"embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1595"}],"version-history":[{"count":0,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts\/1595\/revisions"}],"wp:attachment":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}