module

Import

Import module

Fetches content from external RSS/Atom/JSON feeds and generates posts based on templates. Similar to Nikola's continuous import feature.

Constants

DEFAULT_TEMPLATE = "{{ content }}"

Default template (baked-in) for simple use cases

Class methods

fetch_feed(url : String) : Array(FeedItem)

Parse an RSS/Atom feed from URL

fetch_json(url : String, token : String | Nil = nil) : Array(FeedItem)

Fetch articles from JSON API (Pocketbase or generic)

generate_filename(item : FeedItem, config : FeedConfig) : String

Generate filename for post

generate_post(item : FeedItem, config : FeedConfig, template_content : String) : String

Generate post from feed item

import_all

Import all configured feeds

import_feed(name : String, config : FeedConfig, templates_dir : String)

Import items from a feed configuration

Nested types