Skip to content

ngzhian/ocs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OCS

Simple static blog generator

Features

  • Generates static HTML pages from markdown
  • Fast
  • OCaml code that's easy to read for learning

Developing

$ opam install core omd mustache ezjsonm
$ ocaml setup.ml -configure
$ ocaml setup.ml -build
$ ocaml setup.ml -install

Your markdown files should be in a directory. Template files are in a folder called template. OCS understands two template files right now:

  • index.html
  • post.html

In the directory, run ocs:

$ ocs

By default all the html files will be generated in the same directory. This entire directory can then be uploaded GitHub pages.

Your markdown files can have special metadata that ocs recognizes at the top of the file.

Title: Post title
Date: 2016-04-01

An example layout is found in the example/ folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages