This is the source code of by blog. You can use this template as a starting point to create your own blog.
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.gitGo to the blog/ folder and edit config.toml:
$ cd blog/
$ nvim config.tomlWhen you're ready, run Zola to start the blog:
$ zola serveYou 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 widthtemplate = "blog/post-1200.html"- 1200px widthtemplate = "blog/post-1400.html"- 1400px widthtemplate = "blog/post-1600.html"- 1600px widthtemplate = "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"]
+++There are no requirements or additional dependencies, it works on Windows, Linux, and macOS.