Catsup: a lightweight static blog generator
Project description
================
catsup
================
.. image:: https://travis-ci.org/whtsky/catsup.png?branch=master
:target: https://travis-ci.org/whtsky/catsup
A lightweight static blog generator.
Install
========
Simple way using pip::
pip install catsup
Or another hard way to install::
git clone git://github.com/whtsky/catsup.git
cd catsup
python setup.py install
Setup your blog
===============
Change directory to the directory you prefer to place your blog and run ``catsup init`` to initialize it.
Then you can edit ``config.json`` to change your configuration.
Write a post
============
catsup uses Markdown to write posts.
Filename should like ``year-month-day-title.md``
(For example: ``2000-01-01-catsup.md``)
Post Example::
#Title
----
Content
```python
print "hi,I'm coding."
```
Post properties
================
catsup supports some post properties. Write them before ``---``
and start with ``-`` .
Example::
- category: A Category
- date: 2012-12-24
- tags: tag1, tag2
- comment: disabled
The ``category`` property defines the category of the post, but it's not used yet.
The ``date`` property can overwrite the date from the file name.
The ``tags`` property defines the tags of the post.
The ``comment`` property defines whether the post can be commented or not.
Post excerpt
-------------
You can use ``<!--more-->`` to define an excerpt of a post.
Any content before that will be used as excerpt of the post.
And you can choose to display excerpt rather than full content on your homepage.
Install theme
=============
Run ``catsup themes`` to list available themes. And run ``catsup install path [-g]`` to install a new theme.
If ``-g`` flag present, the theme would be install in the global themes directory.
``path`` could be a url of a git repo or path to the theme folder.
If it's a git repo, catsup will clone and install it automatically.
Build your blog
=================
run ``catsup build``
And you can find your static blog in ``~/build/`` .
catsup
================
.. image:: https://travis-ci.org/whtsky/catsup.png?branch=master
:target: https://travis-ci.org/whtsky/catsup
A lightweight static blog generator.
Install
========
Simple way using pip::
pip install catsup
Or another hard way to install::
git clone git://github.com/whtsky/catsup.git
cd catsup
python setup.py install
Setup your blog
===============
Change directory to the directory you prefer to place your blog and run ``catsup init`` to initialize it.
Then you can edit ``config.json`` to change your configuration.
Write a post
============
catsup uses Markdown to write posts.
Filename should like ``year-month-day-title.md``
(For example: ``2000-01-01-catsup.md``)
Post Example::
#Title
----
Content
```python
print "hi,I'm coding."
```
Post properties
================
catsup supports some post properties. Write them before ``---``
and start with ``-`` .
Example::
- category: A Category
- date: 2012-12-24
- tags: tag1, tag2
- comment: disabled
The ``category`` property defines the category of the post, but it's not used yet.
The ``date`` property can overwrite the date from the file name.
The ``tags`` property defines the tags of the post.
The ``comment`` property defines whether the post can be commented or not.
Post excerpt
-------------
You can use ``<!--more-->`` to define an excerpt of a post.
Any content before that will be used as excerpt of the post.
And you can choose to display excerpt rather than full content on your homepage.
Install theme
=============
Run ``catsup themes`` to list available themes. And run ``catsup install path [-g]`` to install a new theme.
If ``-g`` flag present, the theme would be install in the global themes directory.
``path`` could be a url of a git repo or path to the theme folder.
If it's a git repo, catsup will clone and install it automatically.
Build your blog
=================
run ``catsup build``
And you can find your static blog in ``~/build/`` .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
catsup-0.0.6.tar.gz
(37.2 kB
view details)
Built Distribution
catsup-0.0.6-py2.7.egg
(55.8 kB
view details)
File details
Details for the file catsup-0.0.6.tar.gz
.
File metadata
- Download URL: catsup-0.0.6.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 868276f660209794f25f7076d19e273db1fe0c152434ef67bfb711e6d65d69ba |
|
MD5 | 77466a6d97c4fd206d5bd17aa0771a33 |
|
BLAKE2b-256 | 840f874effa63a9be8f08e8c9fd2f85bda8311eaa8bd58276802789fa47302a7 |
File details
Details for the file catsup-0.0.6-py2.7.egg
.
File metadata
- Download URL: catsup-0.0.6-py2.7.egg
- Upload date:
- Size: 55.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc2ceea67f633325775019c4deffa3a7541e26d8bcf3df02744cd0c3453082ff |
|
MD5 | 95046d128048bd0e8799dcfd4a84a4c9 |
|
BLAKE2b-256 | 284465eabd202b16b6d7c1a6cfb1745f015c892dd879ea887ebe70ad41fa4c21 |