Enables embedding of web-contents from popular sites in MarkDown(*.md) on Lektor CMS
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
MANIFEST.in
README.md
lektor_embed_x.py
sample_output.png
sample_post.png
setup.cfg
setup.py

README.md

License PyPI version Code Issues

lektor-embed-x

Enables simple embedding of web-contents from popular sites in MarkDown(*.md) pages generated by Lektor CMS.

Current Status: Alpha.
Minimally works for limited number of content providers. Active development is ongoing.

Setup

Simple way

$ cd path/to/lektor/project_folder
$ lektor plugins add lektor-embed-x
Package lektor-embed-x (0.1.2) was added to the project

Geek way

$ cd path/to/lektor/project_folder
$ cd ./packages
$ git clone https://github.com/kmonsoor/lektor-embed-x.git

Then add this line to your_lektor_project..lektorproject file's [packages] section.

lektor-embed-x = 0.1.2

Then, remember to flash the plugin-cache of Lektor. Just in case.

$ lektor plugins flush-cache

Usage

You need nothing explicit to enable the embedding in MarkDown formatted text on Lektor. If the content link is supported by embedX project, the content link will automatically expanded to become embedded staff.

For example, check out the sample post and its output below.

sample post

sample post

respective output

output

Apology

Please note that this is a very nascent one-man project under active development and just out of pre-alpha phase. Hence, not many providers or link format is there. Yet. But, I hope it will be mature in a short time. Your feedback, reported issues and pull-requests will be highly valuable.


Copyright: (c) 2016 Khaled Monsoor k@kmonsoor.com

Distributed under The MIT License.
Click for license details.