Facts are the fundamentals of natural science

create blog with Jekyll

12 Apr 2020 - Kovacs J Giulia

Create a new repository  https://github.com/kissjgabi/kiss.git  on the github.

Create a root directory for the project on your local computer and use it:


~$ cd git/kissjgabiGIT/kiss
    

Init git with the remote repository


~/git/kissjgabiGIT/kiss$ git init
~/git/kissjgabiGIT/kiss$ git remote add origin https://github.com/kissjgabi/kiss.git
~/git/kissjgabiGIT/kiss$ git pull origin master
    

Create a „_config.yml” in the root with the following minimum content:


title: K.I.S.S.
email: b6@b6sics.hu

#  >-  means to ignore newlines until next variable (-> baseurl)
description: >- 
  Write an awesome description for your new site here. You can edit this
  line in _config.yml. It will appear in your document head meta (for
  Google search results) and in your feed.xml site description.

baseurl: "/kiss"
url: "https://kissjgabi.github.io"

twitter_username: "kissjgabi"
github_username:  "kissjgabi"

# Build settings
theme: minima

plugins:
  - jekyll-sitemap
    

Create an „index.html” in the root:


<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Home</title>
  </head>
  <body>
    <h1>K.I.S.S.</h1>
	<p>
	  Keep it simple stupid.
	</p>
  </body>
</html>
    

Build your site:


~/git/kissjgabiGIT/kiss$ jekyll build
    

Start the server:


~/git/kissjgabiGIT/kiss$ jekyll serve
    

Go to  http://localhost:4000/kiss  in your browser.

jekyll