Markblog The way to blog with markdown.
Markblog is a small cli
that converts markdown files into a lightweight blog. It is not tied to any platform, and you own your files. In other words, you are the only one owning your content. Markblog aims to be easy to use and uncomplicated.
deno install --allow-read --allow-write --name markblog https:denopkg.com/olaven/markblog
export PATH="<THE_LOCATION>:$PATH"
markblog init
in an empty folder../posts
, in .md
-files.markblog build
to build pages.See this guide for a git/CI-integrated setup. This is, of course, just one of the many ways you could use Markblog.
All kinds of contributions are welcome. Feature requests, bug reports, code, artwork, documentation, or just feedback in general.
Do not hesitate to post an issue
markblog init
will set up everything (AKA 1 file and 1 folder )
markblog build
actually builds your webpage.
markblog help
if you are stuckMarkblog automatically generates an rss-feed, feed.xml
if rss_options
is specified in the options file. See the RSS-option under options for more details.
Options enable you to specify where Markblog should look for files when generating your blog. There are default settings, and specifying custom options can be emitted entirely. If however, you want to use custom options, provide ./options.json
at the root of your blog directory. If you want options in a custom location, use --options
-flag, like: --options path/to/options.json
.
As an example, custom location of posts and custom stylesheet for posts would look something like this:
{
"post_source": "./path/to/posts",
"post_style": "./path/to/custom/style.css",
}
blog_title
post_source
./posts
by defaultpost_destination
./out
by defaultpost_style
post_destination
../style.css
by defaultindex_style
./style.css
by defaultfavicon
""
by defaultrss_options
Specified necessary information for RSS. If present, feed is automatically generated.
title
, description
and link
must be present, i.e.:
{
"rss_options": {
"title": "My amazing blog!",
"description": "This is a blog about amazing stuff",
"link": "https://amazing-example-blog.com"
}
}
Author: olaven
GitHub: https://github.com/olaven/markblog
#deno #markdown #javascript #programming