Skip to content

sesav/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

8am.dev Blog

This is the source code of by blog. You can use this template as a starting point to create your own blog.

How to start

Install Zola and run a single command. Zola will automatically rebuild and reload the site as you make changes. All you need to do is edit the config.toml file, and you're ready to start writing posts.

Clone the repo:

$ git clone https://github.com/sesav/blog.git

Go to the blog/ folder and edit config.toml:

$ cd blog/
$ nvim config.toml

When you're ready, run Zola to start the blog:

$ zola serve

Creating posts with custom width

You can create posts with different content widths by specifying different templates:

  • template = "blog/post.html" - default width (standard blog post)
  • template = "blog/post-1000.html" - 1000px width
  • template = "blog/post-1200.html" - 1200px width
  • template = "blog/post-1400.html" - 1400px width
  • template = "blog/post-1600.html" - 1600px width
  • template = "blog/post-full.html" - full width (no constraints)

Example:

+++
title = "My Post Title"
description = "Post description"
template = "blog/post-1000.html"
[taxonomies]
tags=["tag1", "tag2"]
categories=["category"]
+++

Requirements

There are no requirements or additional dependencies, it works on Windows, Linux, and macOS.

About

My zola blog

Topics

Resources

Stars

Watchers

Forks