Skip to content

nrobinaubertin/write

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Write

Static blog generator in less than 150 LOC

Write

What is Write ?

Write is a static blog generator in python. Like a pen, it's a simple but powerful tool that does what you want, nothing more.

Requirements

How does it work ?

Each article of your blog is a commonmark markdown file.
The are some options that can be specified by placing html comments in your markdown file like this:

<!-- key: value -->

The options are:

  • title: specify a title for your post
  • lang: specify a lang for your post
  • title-font: path or name of a font file that will be used on your titles
  • text-font: path or name of a font file that will be used on your text
  • style-file: path or name of a css file that will be used on the html (defaults to default.css)
  • script-file: path or name of a js file that will be used on the html (defaults to default.js)

In order to process your files, just point the script towards your blog directory and specify an output directory :

write blog/ dist/

That's it !

About

My own blog engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages