- Download or
git clone https://github.com/wowthemesnet/jekyll-theme-memoirs.git
From the rood of your downloaded/cloned folder, open your terminal and install:
gem install bundlerThen:
bundle installEdit _config.yml options. If your site is in root: baseurl: ''. Also, change your Google Analytics code, disqus username, authors, Mailchimp list etc.
Again, from your terminal:
bundle exec jekyll serve --watchYou 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/jekyll-theme-memoirs.
Start populating your blog by adding your .md files in _posts. Memoirs already has a few examples.
YAML front matter options:
- post image -
image: assets/images/mypic.jpg - external post image -
image: "https://externalwebsite.com/image4.jpg" - disable page comments -
comments:false - meta description (optional) -
description: "this is my meta description"
---
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"
---
---
layout: page
title: About Memoirs
comments: false
---
---
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.
# 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.
# Lazy Images ("enabled" or "disabled")
lazyimages: "enabled"
Add toc:true on your post YAML.
---
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.