We want to distinguish between URI references ("local" pages), such as path/to/another/page/of/my/website, from the other ones, such as https://example.com in the menu to know how to build the URL. The issue is that we did the distinction between the two by checking if the string starts with "http". Unfortunately, it does not match other valid URI schemes. One example is mailto:address@example.com to open a mail client with the recipient being address@example.com. There are many other valid URI schemes (tel, ftp, irc, ...). Under the current code, we think anything that isn't started by "http" is local, i.e. we need to append the string to the parent path of the current page. This means that we have https://mywebsite.example.com/mailto:address@example.com linked in the menu instead of the expected mailto:address@example.com. Let's fix that with a very simple test. A URI reference is commonly detected as anything that does not contain a scheme (which has to be suffixed by ':') or if it does, that the given path starts with './'. This is most likely not handling all the cases but at least most of the common ones. Please refer to the RFC for further information: https://www.rfc-editor.org/rfc/rfc3986.txt Signed-off-by: Quentin Schulz <foss@0leil.net>
Prosopopee
Prosopopee. Static site generator for your story.
Make beautiful customizable pictures galleries that tell a story using a static website generator written in Python. You don't need to care about css, code and presentation, manage your contents in YAML file and Prosopopee will take care about the rest.
Prosopopee is sections oriented, make it very flexible, many kinds of section already available:
- Parallax
- Group of pics (gallery)
- Paragraph
- Iframe (Youtube, Maps, etc..)
- Quote
- And more
Screenshots
Features
Prosopopee currently supports:
- Lightweight
- Thumbnails & multiple resolutions for fast previews (JPEG progressive)
- Videos support
- Mobile friendly
- Caching for fast rendering
- Multi level gallery
- Support themes (default, material, light)
- Password access (encrypt page)
- Image lazy loading
- Night Mode
- Completely static output is easy to host anywhere
- Hackable
Examples
You can find example usages here:
- http://surleschemins.fr
- http://media.faimaison.net/photos/galerie/
- https://www.thebrownianmovement.org/
- http://outside.browny.pink
- http://such.life
- http://www.street-art.me
Code example
title: Title
date: 2015-12-18
cover: P1070043-01-01.jpeg
sections:
- type: full-picture
image: P1060979-01-01.jpeg
fixed: true
text:
title: My Story
sub_title: some subtitle
date: 2015-12-18
- type: paragraph
title: Beautiful Title
text: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor
- type: pictures-group
images:
-
- P1060938-01-01.jpeg
- P1060946-01-01.jpeg
- P1060947-01-01.jpeg
- P1060948-01-01.jpeg
Usage
prosopopee
prosopopee preview
prosopopee deploy
prosopopee test
prosopopee (-h | --help)
prosopopee.py --version
Docker
https://hub.docker.com/r/beudbeud/prosopopee/
Licence
GLPv3
Documentation
http://prosopopee.readthedocs.org/en/latest/
IRC
channel : irc.freenode.net#prosopopee
Description
Languages
HTML
43.9%
CSS
43.2%
Python
12.9%