Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6198237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:57:43+00:00 2026-05-24T03:57:43+00:00

Please tell me how to create a basic Jekyll site. I am especially confused

  • 0

Please tell me how to create a basic Jekyll site. I am especially confused about the file _config.yml and the YAML front matter.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:57:44+00:00Added an answer on May 24, 2026 at 3:57 am

    I don’t quite understand the wording of you questions, but I’ll take a shot. I’m guessing you are referring to one of two things. Either the config file or the YAML front matter. Whichever one, see below for a basic primer to get a jekyll site up and running. It shows the usage of both in context.

    In an empty directory, create the following:

    1. A new directory named _layouts.

    2. A new directory named _posts.

    3. A new directory named _site.

    4. A file named index.md with the following content:

      ---
      layout: default
      ---
      
      # My Jekyll site
      
      Welcome to my Jekyll site
      

      (Note: the “layout: default” surrounded by the two lines of dashes is the YAML Front Matter. Specifying “default” means that jekyll will use the “default.html” file in the _layouts directory listed below.)

    5. A file named _config.yml with the following default content:

      safe:        false
      auto:        false
      server:      false
      server_port: 4000
      base-url:    /
      
      source:      .
      destination: ./_site
      plugins:     ./_plugins
      
      future:      true
      lsi:         false
      pygments:    false
      markdown:    maruku
      permalink:   date
      
      maruku:
        use_tex:    false
        use_divs:   false
        png_engine: blahtex
        png_dir:    images/latex
        png_url:    /images/latex
      
      rdiscount:
        extensions: []
      
      kramdown:
        auto_ids: true,
        footnote_nr: 1
        entity_output: as_char
        toc_levels: 1..6
        use_coderay: false
      
        coderay:
          coderay_wrap: div
          coderay_line_numbers: inline
          coderay_line_numbers_start: 1
          coderay_tab_width: 4
          coderay_bold_every: 10
          coderay_css: style
      

    There are two more files you’ll want to create for the example,

    1. Inside the “_layouts” directory, a file named default.html with the following:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html lang="en">
      <head>
          <meta charset="utf-8">
          <title>My Jekyll Site</title>
      </head>
      <body>
      
          <!-- This will be replaced with your content -->
          {{ content }}
      
      
      </body>
      </html>
      
    2. Inside the “_posts” directory, a file named 2011-07-29-my-first-jekyll-post.md with the following:

      ---
      layout: default
      ---
      
      # My First Jekyll Post
      
      The quick brown fox jumps over the lazy dog. 
      

      (Note: Once again, the “layout: default” surrounded by the two lines of dashes is the YAML Front Matter and specifies that “default.html” will be used for the template.)


    At this point the directory structure should look like this:

    ./_config.yml
    ./_layouts
    ./_posts
    ./_posts/2011-07-29-my-first-jekyll-post.md
    ./_site
    ./index.md
    

    Once all that is setup, from the command line go to the directory that has the index.md file in it and run jekyll. You should see a quick report like:

    Configuration from /some-path/_config.yml
    Building site: . -> ./_site
    Successfully generated site: . -> ./_site
    

    Two output file will have been created:

    • ./_site/index.html
    • ./_site/2011/07/29/my-first-jekyll-post.html

    Those files correspond to the two markdown files after the were transformed to HTML and dropped into the default.html wrapper replacing the “{{ content }}” string.

    That should get your started with the basics.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please tell me if it is possible to do the following: create an instance
Can sommebody please tell me what is not right about this code? It compiles
I have to create webapplication like igoogle.So how can i create widgets? Please tell
Is it possible to create the database in sdcard. If possible please tell m
Please tell me about some OpenGL 4.0 limitations: 1) What is the maximum of
Please tell me the best methodology to create the user login using the following
Can someone please tell me how do I create the android phone style picture
Can anyone please tell me how to create multiple instance of skype with different
can anybody please tell me how to create vertical gallery in android? Is it
please tell me the html syntax with example so that when i create a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.