Yet another static blog generator.
Project description
pidgeotto
Description
Yet another static website generator.
Why choose pidgeotto?
- Free of javascript.
- Extensible, flexible, forkable.
- Minimal and fast.
- Free under GPLv3 License.
Installation
$ pip install git+https://github.com/niharokz/pidgeotto
Prerequisites
By default, pidgeotto will install the below packages from PyPI pip
pyyaml, jinja2, markdown2
- PyYAML: To consume the config file and header of blog posts.
- jinja2: Templating engine
- markdown2: To convert markdown to HTML
Usage:
$ pidgey init project
To initiate pidgeotto with name "project"
$ pidgey new pageName
To create new page/post/note with name "pageName"
$ pidgey build pageName
To build static pages and keep those in the "public" directory.
Extra Functionalaties
-
showInHome tag is present in each note markdown.
showInHome: True
will create page which are blog/note post.``` showInHome: False ``` will create page which are pages.
-
config.yml is extensible. For example, if you want to add favicon.ico. Keep favicon in the resource folder.
favicon: resource/favicon.ico
in config.yml In template, add {{ config.get('favicon') }}. -
Extra metadata per page. If you want to add some metadata to your page, it can be done using the below command on the markdown page.
meta : '<link rel="stylesheet" type="text/css" href="/extra.css" />
Structure
pidgeotto_project
├── public
├── config.yml
├── content
│ ├── header.md
│ ├── footer.md
│ ├── home.md
│ ├── archive.md
│ └── note
│ └── other_pages.md
├── resource
└── templates
├── home_template.html
├── note_template.html
└── rss_template.xml
- config.yml: To configure the title, name, CSS file, js file, and other configurations.
- resource: Location to store all CSS, js, image data and other static content.
- content: All markdown files are stored here.
- template: Layouts for different HTML pages are kept here.
- public: All generated static files. It can be changed in config.yml
Example
Below are examples of sites running via pidgeotto.
TODO
(A) 21-04-2021 Fix rss template (A) 21-04-2021 Add Serve functionality (B) 21-04-2021 Clean up some clutter coding
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
Built Distribution
Hashes for pidgeotto-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8b0c2e6b155da230e449322be31df0596a5b8641a96a7604293769757e6caa2 |
|
MD5 | 2643504ad7be27d01e7f7935348507d7 |
|
BLAKE2b-256 | eaba5a8f7407be1b00bf9d6347b3796bf74be42dccf9ee609c0ea7f82f896163 |