i using nikola page generator.
but depending on page scope , users, lektor seems easier , more streamlined end-user. fits new page plan.
nikola embedds media (youtube, vimeo, soundcloud, etc.) https://getnikola.com/handbook.html#restructuredtext-extensions
how such functionality provided lektor?
the answer of @a. jesse right. due maintain simplicity in core of lektor
, flask
, automatic embedding not done "core".
however, in same spirit of flask
, lektor
highly extensible. applies parsing of markdown
formatted text in post & rendering final html.
as said, can directly paste embeddable code in html in otherwise markdown texts. and, included as-is in final html.
but, thought hurts core intention of markdown's simplicity & quick readability.
easy-to-read, easy-to-write plain text format
that why felt necessity of lektor-embed-x writer write down content's link in seperate paragraph. small piece of plugin rest possible extent. glue-library between embedx , lektor
.
- if content of relatively "popular" site, , link okay format, related necessary embed-code generated , included in final html.
- if not, link result in regular link, i.e.
<a href=...
link.
the usage simple.
step 1 add plugin by: $ cd path/to/lektor/project_folder $ lektor plugins add lektor-embed-x package lektor-embed-x (0.1.2) added project
that's it. ready go. [as of now, there no addition configuration.]
now, on post can add link on paragraph of own paragraph, without special marker or start-flag, in markdown
formatted post below.
contents.lr
title: website --- body: website made lektor quickstart. , not contain lot of information. # **heading 1** ## 2nd head _italic slated text_ ~~mess~~ whatever text need write. https://twitter.com/codinghorror/status/686254714938200064 below how can embed in post. http://www.youtube.com/watch?v=_lot2p_fcva so, wanted say.
after generating final htmls through lektor
, above post generate like:
note
please note nascent one-man project under active development , out of pre-alpha phase. hence, not many providers or link format there. yet. but, hope mature in short time.
Comments
Post a Comment