Skip to content


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

SSSSG (Super Simple Static Site Generator)

SSSSG is a very simple static site generator written in Python used to render Markdown files.


  • tornado
  • markdown
  • I wrote it in Python 3.5, but there shouldn't be any reason for it not to run in 2.7


python install


SSSSG is easy to use employing only two commands: run and index. You will need to setup your site files with the following rules:

  1. Create a directory to store your pages. The directory name will be the name that you reference when you run the site.
  2. Store all of your viewable files with a .md extension.
  3. Add a static directory for your static files -- css, js, images, fonts, etc.


Pages are rendered using the markdown package and the markdown.extensions.meta extension. This allows for you to add custom meta-data to each page.

####SSSSG Supported Meta-data

  • Title -- the page title
  • Slug -- this will be how the page is referenced in the browser. If this is not defined, SSSSG will take the file name along with the path to create a slug.
  • Tags -- a comma separated list of tags that you can use to identify a page
  • Published -- a boolean flag stating if the page should be published (viewable via the browser) or not. Defaults to true.
  • Templates -- a comma separated list of template files found in the templates directory. The page's content will be passed through the templates in F.I.F.O order.

Example page with meta-data:

title: About My.Site
slug: about
tags: about,my site,emehrkay

<h1>About My.Site</h1>


Indexing your content and running the application is very simple


This command's job is to index your site's files.

python index /path/to/your/


This command runs the site.

python run

currently SSSSG is designed to only run one site at a time. If you want to run multiple sites you simply spawn multiple instances of the run command pointing to different sites with different ports.

###Configuration Options

The default setup defines a few configuration options that can be overwritten at run-time (these can be found in ssssg/

  • port [7007] -- The port used to run the SSSSG app
  • cache_file_directory [CWD + '/../caches'] -- the directory where to write the cache files generated by the SSSSG index command
  • four_oh_four [CWD + '/pages/'] -- The default 404 page to render
  • five_oh_oh [CWD + '/pages/'] -- The default 500 page to render
  • base_template [CWD + '/pages/base.html'] -- The base template that will be loaded with every page
  • search_template [CWD + '/pages/search.html'] -- The default template to use when rendering search results
  • default_error_title ['Server Error'] -- The default title to show when there is an error rendering the page
  • watch_for_changes [60000 (60 seconds)] -- The time in milliseconds to check the site directory for changes and re-index the files. Set to zero to disable watching.
  • debug [True] -- Flag that states if non-published pages should be viewable by their slug.

SSSG provides two ways to override configuration options during run-time:

The first is to define the options in your site's file (this file must be in your site's root and is pure Python):

port = 9999
default_error_title = 'Some Witty Error Title For My Site'

The other is to simply pass a setting in with prepended by a single dash (-) when initializing the site:

python run -port=9999 -cache_file_directory=/some/path

The is read first, then the settings flags are applied last. !NOTE: If you want to define the cache_file_directory in your file, you must pass it in as a initialization flag also.


###Tag Search

SSSSG will allow you to list pages that match any tags defined in a query string. This feature uses the search_template option to render the resulting HTML.,some+other+tag,money

###Power Pages

While the pages are Markdown, they are run through Tornado's templating engine. This gives you the full power of Python in your markup. Be responsible.

More power coming soon in the form of UI.Modules


Super Simple Static Site Generator







No packages published