Microblog Parser and Collection for Render Engine
Project description
Render Engine Microblog Parser
This is a parser to create a microblog using Render Engine. This is based on the Blog Custom Collection.
This follows the guidance used by Micro.blog which is to be a post with no title. Slugs by default are the slugified datetime string in YYYYMMDDHHMMSS format.
This also create an RSS feed that you can use to syndicate your microblog posts to other services.
Your content is expected to use render engine's MarkdownPageParser or a derivative which is markdown with frontmatter. A date field is the only required metadata for the page object.
---
date: 2023-01-01 12:00:00
---
Hello **World**!
Installation
Install using pypi. If you haven't already, install render-engine
pip install render-engine render-engine-microblog
Usage
Import the parser and collection
In your render_engine config file import the MicroBlog collection class.
from render_engine import Site
from render_engine_microblog import MicroBlog
Create a collection for your site
Create your collection like you would a blog. You will need to pass a content_path.
site = Site()
@site.collection
class MicroBlog(MicroBlog):
content_path = "content/microblog"
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file render_engine_microblog-2024.1.1.tar.gz.
File metadata
- Download URL: render_engine_microblog-2024.1.1.tar.gz
- Upload date:
- Size: 46.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b15e522d503c38110b940d67636ea22e94dd1248579fae3b0bfabfdc7aeff14a
|
|
| MD5 |
4830b2f4d1cafa8b68090f91c897abb1
|
|
| BLAKE2b-256 |
26578d84738a167d59474dbae10047c679db15f240c6b73a5fdf854a133fd5ea
|
File details
Details for the file render_engine_microblog-2024.1.1-py3-none-any.whl.
File metadata
- Download URL: render_engine_microblog-2024.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
133301bb96fbeee0add14f6239c276ac1ad6dc3899942360ed736796f7c44d18
|
|
| MD5 |
4691a4df914960383993c8e9ed7633a6
|
|
| BLAKE2b-256 |
476103da9c2d6eaa0a57ace079470b06a7ac3edbb6c6b82b37095058400bc699
|