My simple static site generator.
Project description
mysgen
A very simple static site generator used for mladen.gibanica.net built using Python and Jinja2.
The configuration file config.json
should contain the following
{
"author": "Name",
"sitename": "Site name",
"siteurl": "https://address.com",
"timezone": "Europe/Stockholm",
"default_lang": "en-gb",
"theme_path": "path_to_theme",
"src_path": "path_to_content",
"build_path": "path_to_build",
"home": "home",
"menuitems": {
"home": "",
"archive": "archive"
},
"post_url": "{{post_url}}",
"build_date_template": "{{update_date}}",
"thumbnail_size": [300, 300],
"markdown_extensions": [
"meta",
"fenced_code",
"mdx_math"
],
"s3-bucket": "bucket",
"mangle_image_name": true
}
Such a configuration assumes the following folder structure
root/
├─ config.json
├─ path_to_content/
│ ├─ data/
│ ├─ images/
│ ├─ pages/
│ │ ├─ home.md
│ │ ├─ archive.md
│ ├─ posts/
├─ path_to_theme/
│ ├─ css/
│ ├─ js/
│ ├─ templates/
├─ path_to_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
mysgen-0.4.4.tar.gz
(20.1 kB
view hashes)
Built Distribution
mysgen-0.4.4-py3-none-any.whl
(7.0 kB
view hashes)