Hi and welcome to Carbon Blog User Guide. This guide will cover all the information needed to make an awesome blog and deploy on your servers. If you still face any issue you can any time mail down the issue to support@redsparrowthemes.com and our support team will be glad to help you out.
You can navigate to different sections using the left navigation bar. Important sections are covered in this user guide.
First step is to install HUGO on your specific OS. If you are new to HUGO you can read the HUGO Docs. These docs are great and updated to start with HUGO installation.
* Since we are using SCSS make sure you have the extended version of HUGO installed on your system.
There is no need to add the theme we have have added theme to the hugo structure itself. Once you extract the zip in desired location just run -
hugo server
This template has following pages currently -
You can find these pages in the layout folder, where you can edit the strucutre of the page
You can edit edit the content of the pages from the content folder.
You can create a new blog using 2 methods.
hugo new blog/my-first-post.md
Once you have created "my-first-post.md" through cli you can add some essentail front matter
---
title: "What wikipedia can't tell you about photography services"
date: 2020-10-02
categories:
- Travel
- Nature
- Solo
type: "blog"
image: 'https://via.placeholder.com/1920x1080'
---
You can directly create a "my-first-post.md" in the blog folder and add the following front matter
---
title: "What wikipedia can't tell you about photography services"
date: 2020-10-02
categories:
- Travel
- Nature
- Solo
type: "blog"
image: '/images/CEq6fRnVn4c.jpg'
---
We have used the HUGO provided pagination for our template. The value is set to 20 items for one page. You can change it it in the config.yml file as per your requirement.
Below is the code to set the pagination limit per page
Paginate: 20
Also keep in mind this value is set globally, so on the category page also you will have pagination depending upon the value you set in config.yml
We have given a provision where you can add categories to a blog and you can get the sorted blog posts as per the category name.
You have to do is mention categories in the front matter of the blog posts.
---
title: "What wikipedia can't tell you about photography services"
date: 2020-10-02
categories:
- Travel
- Nature
- Solo
type: "blog"
image: '/images/CEq6fRnVn4c.jpg'
---
Now this blog will be available in 3 categories.
On categories page you will find 3 categories card and each will have this blog post