Skip to main content

Static site generator using Markdown and Jinja

Project description

Simple static site generator built from Markdown and Jinja

Three commands to produce three things:

concorde pages  renders Markdown files through a template, producing new pages
concorde index  takes a list of Markdown files that you presumably just rendered
                with pages, orders them by date, and renders them through a
                template to produce an index file
concorde rss    similar to concorde index, but produces an RSS feed instead

Run concorde <command> help for more details.

One distinguishing feature of Concorde is that the templates and the rendered pages do not necessarily have to be HTML. In fact, Concorde was created because of the need to quickly tack on a static blog generator to a site written in PHP.

Concorde is designed to be easily paired with a Makefile to generate a site. For example, given a site laid out like so:

my-example-site
    site
        a-post.md
        another-post.md
    templates
        index.html
        blog-post.html

A Makefile to build the HTML pages, index page, and RSS feed would look like

posts := $(patsubst %.md,%.html,$(wildcard site/*.md))

.PHONY : all clean

all: site/index.html site/rss.xml $(posts)

clean:
    -rm site/index.html
    -rm site/rss.xml
    -rm $(posts)

site/index.html: $(posts) templates/index.html
    concorde index --template=templates/index.html --output=$@ --output-extension=.html site/

site/blog/rss.xml : $(posts)
    concorde rss --output=$@ --title="My Example Blog" --url="http://example.com/rss.xml" site/

$(posts): site/*.md templates/blog-post.html
    concorde pages --template=templates/blog-post.html site/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

concorde-0.1.2.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file concorde-0.1.2.tar.gz.

File metadata

  • Download URL: concorde-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for concorde-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bdc0fe3cd1a0464a8848030dffee0eb40c367b1f972ecedba34630ad8ae31387
MD5 75399bf4200075fdb6e7039ece9f45aa
BLAKE2b-256 f315afc2c258ffd919caec0e2fa0cfbe19fe4d58bb66c7f8b7b8284a779e7471

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page