Hwaro::Services::Importers::JekyllImporter
Inherits Hwaro::Services::Importers::Base < Reference < Object
Constants
FILENAME_PATTERN = /^(\d{4}-\d{2}-\d{2})-(.+)\.(md|markdown)$/
Regex to match Jekyll post filenames: YYYY-MM-DD-slug.md
LIQUID_TAG_PATTERN = /\{[%{].*?[%}]\}/
Regex to detect Liquid tags in content
MAPPED_KEYS = Set {"title", "date", "last_modified_at", "permalink", "redirect_from", "layout", "categories", "category", "tags", "published", "excerpt", "description", "image"}
Keys import_file maps (or consumes) itself.
Instance methods
run(options : Config::Options::ImportOptions) : ImportResult
Source