bashCopy code
gem install bundler
Then:
bashCopy code
bundle install
Edit _config.yml
options. If your site is in the root: baseurl: ''
. Also, change your Google Analytics code, Disqus username, authors, Mailchimp list, etc.
Again, from your terminal:
bashCopy code
bundle exec jekyll serve --watch --incremental
You should be able to see your Jekyll project now. If you didn’t change the folder name, you should see it live at http://127.0.0.1:4000/
Start populating your blog by adding your .md
files in _posts
. Memoirs already has a few examples.
image: assets/images/mypic.jpg
image: "https://externalwebsite.com/image4.jpg"
comments: false
description: "this is my meta description"
markdownCopy code---
layout: post
title: "We all wait for summer"
author: john
categories: [ Lifestyle, Travel ]
tags: [ France ]
image: assets/images/5.jpg
description: "Something about this post here"
---
markdownCopy code---
layout: page
title: About Memoirs
comments: false
---
markdownCopy code---
layout: post
title: "We all wait for summer"
author: john
categories: [ Jekyll, tutorial ]
image: assets/images/5.jpg
description: "Something about this post here"
rating: 4.5
---
Enable this option by editing _config.yml
.
markdownCopy code# Adsense (change to "enabled" to activate, also your client id and ad slot. Create a new ad unit from your Adsense account to get the slot.)
adsense: "disabled"
adsense-data-ad-client: "ca-pub-3412143450191416"
adsense-data-ad-slot: "1363087678"
Enable this option by editing _config.yml
.
markdownCopy code# Lazy Images ("enabled" or "disabled")
lazyimages: "enabled"
Add toc:true
on your post YAML.
markdownCopy code---
layout: post
title: "Education must also train one for quick, resolute and effective thinking."
author: john
categories: [ Jekyll, tutorial ]
image: assets/images/3.jpg
beforetoc: "Markdown editor is a very powerful thing. In this article I'm going to show you what you can actually do with it, some tricks and tips while editing your post."
toc: true
---
beforetoc
adds a paragraph before the TOC is displayed.
You’ll only work with a single file to edit/add theme style: assets/css/theme.scss
. 🎨✨