Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngzhian/ocs
https://github.com/ngzhian/ocs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ngzhian/ocs
- Owner: ngzhian
- Created: 2016-04-18T05:33:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T06:39:38.000Z (over 7 years ago)
- Last Synced: 2024-10-13T06:50:57.825Z (3 months ago)
- Language: OCaml
- Size: 91.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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