Pelican YAML Metadata
This Pelican plugin allows articles written in Markdown to define their metadata using a YAML header. This format is compatible with other popular static site generators like Jekyll or Hugo.
It is fully backwards-compatible with the default metadata parsing.
Installation
This plugin can be installed via:
python -m pip install pelican-yaml-metadata
As long as you have not explicitly added a PLUGINS setting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must add yaml_metadata to your existing PLUGINS list. For more information, please see the How to Use Plugins documentation.
Usage
This plugin aims to keep things simple. After installing and enabling it, any Markdown files will have the option of defining metadata using a YAML header instead of the standard key/value pairs.
In order to specify metadata using YAML, enclose it within --- lines.
Example:
---
title: Some title
author: Some person
tags:
- tag 1
- tag 2
date: 2014-12-25 00:00
summary: The article summary will be __parsed__ as markdown
---
This is some article text.
If the YAML block is not found, the metadata will be parsed using the normal Markdown metadata syntax.
Contributing
Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on existing issues.
To start contributing to this plugin, review the Contributing to Pelican documentation, beginning with the Contributing Code section.
License
This project is licensed under the MIT license.
Release files for pelican-yaml-metadata 2.1.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 | |
|---|---|---|---|
| pelican_yaml_metadata-2.1.2.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pelican_yaml_metadata-2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / pelican_yaml_metadata-2.1.2.tar.gz
| Download URL | pelican_yaml_metadata-2.1.2.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11018c3aead96e92731eeca61cdabdeafe880ece8f639b0463177e031ae361d7
|
|
BLAKE2b-256 checksum How to use checksums |
fc70baf784c97d8ee1077b2db86c03df7d0165115b4db24529b0c81d302fad42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / pelican_yaml_metadata-2.1.2-py3-none-any.whl
| Download URL | pelican_yaml_metadata-2.1.2-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12282f85b68d12783d10e67c3066e5e3a1ec8daeaced889274168f1daf137a93
|
|
BLAKE2b-256 checksum How to use checksums |
bf4c14629b6f43345ad78c46a24b1bae76298e200d3be95118bdb6e9b659e30d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|