Skip to main content

Pelimoji

Build Status PyPI Version Downloads License

Pelimoji is a Pelican plugin that adds support for custom emoji to your site.

Installation

This plugin can be installed via:

python -m pip install pelimoji

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 pelimoji to your existing PLUGINS list. For more information, please see the How to Use Plugins documentation.

Usage

Within your PATH content root create a directory called emoji. To that directory, add any square image files at least 16x16 ending in .png. These will be your emoji, addressable via the filename before the extension, such as :gentoo: if you had a file named gentoo.png in your PELIMOJI_PATH. This is case-sensitive if your filesystem is case-sensitive. 64x64 works best, but any size will do, including 512x512. Just remember, this will affect load speed for your pages.

When compiling your site, the following directory will be created and automatically added to your STATIC_PATHS: PATH/emoji_map/. You'll need to ensure that PATH/emoji_map/emoji.css is loaded as a stylesheet, whether using something like webassets or cssmin, or by adding directly.

You may optionally also specify a PELIMOJI_PREFIX to require if you might have multiple sets of colon-tags that'd overlap. Whereas I might normally use :thumbs-up:, I could then specify PELIMOJI_PREFIX = "emoji", and my tag would instead be :emoji-thumbs-up:.

By default this plugin operates on source content files with the following file extensions: ["md", "html", "rst"], corresponding to Markdown, HTML, and reStructuredText. If you, say, want this plugin to also process files ending in .txt, you should add the following to your settings file:

PELIMOJI_FILE_EXTENSIONS = ["md", "html", "rst", "txt"]

You can specify a PELIMOJI_SIZE_MULTIPLIER setting, which defaults to 1, to increase the size of all emoji when they are rendered. Specifying 2 via this setting will cause each emoji to be twice as large as the default, 3 will make them three times larger, et cetera. For example:

PELIMOJI_SIZE_MULTIPLIER = 2

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 AGPL-3.0 license.

Release files for pelimoji 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pelimoji 1.2.0
File Size Uploaded
pelimoji-1.2.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pelimoji 1.2.0
File Interpreter ABI Platform
pelimoji-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / pelimoji-1.2.0.tar.gz

Download URL pelimoji-1.2.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e91c81360b6bd9b146b8ff66aa9b70ffa65abb5b7d5cbe3f49bae99584094f49
BLAKE2b-256 checksum
How to use checksums
2d852d0f4c61c55b6fa4a41d3fe25071ca9c56a620b30074b6f5ca003ae46b43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 1, 2025.

Transparency log

Release files / pelimoji-1.2.0-py3-none-any.whl

Download URL pelimoji-1.2.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74fadb07251f5e5e0b810b6e99dba7d330335bf8946e99f414b23357fcbac4ca
BLAKE2b-256 checksum
How to use checksums
7b68d0d137ba006948a49767ac403368b940a2eab853b8f6ec5d4228e953d0db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 1, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page