Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

Pagewise

Pagewise is a static website generator, similar to Github's Jekyll but generalized.

In particular, it's not blog-aware and does not have any builtin notion of either posts or categories. Instead, it categorizes all the files in its content folder by their extension, sorts them, adds convenient properties and makes all of that available to the template engine. Additional properties may be added via YAML headers.

Those files can represent posts, projects, items in a sidebar or whatever you want.

Features

  • Not limited to blogs or any other kind of website.
  • UTF-8 support.
  • Works on both Python 2.7.+ and 3.1.+
  • Can use either Python Markdown or Misaka as renderers.
  • A quite powerful template engine: Jinja2.
  • Can use Pygments for syntax highlighting.
  • Pagination support for any page and section (not just index/posts).
  • Will not delete .hg or .git directories when writing to local repositories.
  • Windows support is not an afterthought.

Status

All the major features are implemented but there is no documentation (yet). I plan to fix that soon. In the meantime, you can take a gander at my blog source code to see what a pw project looks like.

License

As usual, everything is licensed under the WTFPL.

Recent activity

ai...@pc

Commits by ai...@pc were pushed to ainm/pagewise

455e4d9 - Back to single-file, way more comfortable in Python.
ai...@pc

Commits by ai...@pc were pushed to ainm/pagewise

a51879b - Markup.py (mostly) finished.
ai...@pc

Commits by ai...@pc were pushed to ainm/pagewise

46bfa77 - Support markup overrides for any given item.
ai...@pc

Commits by ai...@pc were pushed to ainm/pagewise

da3ca14 - Start cleaning. Markup first. Restructured text support.
ai...@pc

Commits by ai...@pc were pushed to ainm/pagewise

c29d35d - Split into a module. Add setup.py...
ai...@pc

Commits by ai...@pc were pushed to ainm/pagewise

d011cbb - Trailing spaces/tabs cleanup.
ai...@pc

Commits by ai...@pc were pushed to ainm/pagewise

8305acb - Start backporting changes from new version.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.