Skip to main content

A simple static site generator

Project description

Barium

The Barium logo

A simple static site generator.
Jekyll is undocumented, and Flask feels a bit too bulky when all you need is a simple static site, so Barium aims to be the best of both worlds.

Barium generates static HTML pages from Markdown files and Jinja templates. And that's it. You get a folder of clean, static files and you can host them however and wherever you like. After all, it's a static site generator, not a static site deployer.

It also includes a really simple HTTP server to help you preview your site during development please don't use it in production.

Documentation

To get started, clone the repo and run pip install .. You can then just run barium build and barium serve.

Barium reads files from the source directory, processes them with templates from the templates directory, and saves the output HTML files in the build directory.
You can set which template to use in a file's front matter by setting the template to a file name (including file extension) property. If no template is provided, Barium tries to use default.jinja.
The templates can be every file extension that jinja supports. Inside the template, you can use the following variables through the page-dict:

  • All front matter properties
  • path: the complete path of the file
  • slug: the name of the file
  • content: the HTML-content of the page

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

bariumssg-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bariumssg-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file bariumssg-0.1.0.tar.gz.

File metadata

  • Download URL: bariumssg-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bariumssg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 55c8c35690a23498e5281a1d1d8086f90658918471d9ca6c5d5d78fafa2836ba
MD5 0839f2c3c1b467fa7ec5bd5035e1e525
BLAKE2b-256 c85d5384079a3415d97d4efc6a7df93cb9704eb48f97cced57ed141956512466

See more details on using hashes here.

Provenance

The following attestation bundles were made for bariumssg-0.1.0.tar.gz:

Publisher: python-publish.yml on Gijs6/Barium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bariumssg-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bariumssg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bariumssg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e524b03cc8e31378aa09fe7b3e672911ccd091c8c757033bac673b97cad4ceed
MD5 926ec9ebe7fa912576b29a95a47a1b8c
BLAKE2b-256 c28d27ddefd82e11d69dcde297fad414a4f37938451323ae6d4a054aa30a3462

See more details on using hashes here.

Provenance

The following attestation bundles were made for bariumssg-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on Gijs6/Barium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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