Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

render_engine_microblog-2024.1.1.tar.gz (46.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page