Now Loading

How to add authors?

You need to follow 2 steps to add authors in that theme. Here following the steps :

Step 1 (Add author in post) : #

In the post configuration area you need to put

author_id: 3

Copy

For example :

---
layout: post
title: "Test Post title"
date: 2019-08-01 10:59:37 +0600
post_image: /assets/images/blog-images/blog-img16.jpg 
tags: [tag1, tag2, tag2]
categories: [category-name]
author_id: 3
comments: false
excerpt: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnaliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
---

Copy

there author name is Jhon Doe but i have to put 3 or 4 or 5 or any other number.

Step 2 (Add author in _author data folder) : #

After adding the author_id in post you must need to create a html file with following configuration.

---
layout: author
name: Jhon Doe
author_id: 3
email: example@yourdomain.com
bio: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt .
image: /assets//images/authors/author-pic.jpg
location: Sao Paulo, BR
---

Copy

You can add more option there like, facebooktwitterinstagraminstagramreddit with the social links. It will display in author information area. These are actually optional.

Now copy that html folder inside _authors data folder

If you have already created html file for that author then you may skip the step #2

Powered by BetterDocs