How to add Code blocks, Image blocks, Video blocks to your Site
Block Quote
Perfect for adding quotes to your post, with optional author, source and title information.
Alias: quote
1 | {% blockquote [author[, source]] [link] [source_link_title] %} |
Examples
No arguments. Plain blockquote.
1 | {% blockquote %} |
Quote from a book
1 | {% blockquote David Levithan, Wide Awake %} |
Code Block
Useful feature for adding code snippets to your post.
Alias: code
1 | {% codeblock [title] [lang:language] [url] [link text] [additional options] %} |
Image
Inserts an image with specified size.
1 | {% img [class names] /path/to/image [width] [height] '"title text" "alt text"' %} |
Link
Inserts a link with target=”_blank” attribute.
1 | {% link text url [external] [title] %} |
YouTube
Inserts a YouTube video.
1 | {% youtube video_id [type] [cookie] %} |
Examples
Embed a video
1 | {% youtube lJIrF4YjHfQ %} |
Embed a playlist
1 | {% youtube PL9hW1uS6HUfscJ9DHkOSoOX45MjXduUxo 'playlist' %} |
YouTube’s cookie is not used in this mode.
1 | {% youtube lJIrF4YjHfQ false %} |
Include Posts
Include links to other posts.
1 | {% post_path filename %} |
How to add Code blocks, Image blocks, Video blocks to your Site