Lektor Gemini capsule
This plugin for Lektor adds support for dual-generation of web and Gemini content.
Using this
Steps
- Install
lektor-gemini-capsule - Create your templates under
templates/MODEL.gmi lektor buildand profit!
Note that if your web server is the same as your Gemini server, you may be able to copy the whole site once and serve both protocols from the same resulting directory. Check your server's documentation.
Details
In order to install the plugin you can add following to your .lektorproject
file:
[packages]
lektor-gemini-capsule = 0.2
Or follow the official plugin instructions.
How it works
This plugin generates a corresponding index.gmi whenever Lektor generates an
index.html file.
It does so by reusing the one model <--> one template concept, so you will have to create a template for each model.
Disabling Gemini for specific models
If you would like to skip Gemini generation for a specific model, you can use
following in your model's .ini:
[fields._skip_gemini]
type = boolean
default = True
The md2gemini Jinja filter
This plugin defines an md2gemini Jinja filter, but by default it just passes
the text as it is defined.
This limitation is due to an incompatibility between md2gemini and Lektor when it comes to a common dependency called mistune (the Markdown parser).
This filter is defined and its use is encouraged in the hope that this incompatibility is solved soon and the resulting Gemini capsules are more Gemini-friendly without any added effort.
Metadata
Release files for lektor-gemini-capsule 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lektor-gemini-capsule-0.2.tar.gz | 4.1 kB | Without provenance | Details for lektor-gemini-capsule-0.2.tar.gz |
Release files / lektor-gemini-capsule-0.2.tar.gz
| Download URL | lektor-gemini-capsule-0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5d1d94cd4ff768465b325fdb8f43ebe8d522f249c26081ddda3e492273867ac
|
|
BLAKE2b-256 checksum How to use checksums |
84340ac467b7d7093e75d4b8cfb97286757be56fa586b9a494dc615b30585483
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Security for lektor-gemini-capsule 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.