Table of Content

剣 Shortcodes is part of neocaprima grav plugins.

Sertaken

Parameter

param desc
template template to use in template/shortcodes
tag html tag to use
file file to load as content
content or content itself
mode e, html, md, twig
class tag element classes, use ";" for multiple class, eg: code;big

Basic Usage

[sertaken tag='pre' file='coba.html' mode=e class='coba;code']
mode render
e
<b>This is content of file coba.html</b><br> This line has markdown **Bold** and _italic_ <p>HTML paragraph contains text with html tags.</p>
html
This is content of file coba.html
This line has markdown **Bold** and _italic_

HTML paragraph contains text with html tags.

md
This is content of file coba.html
This line has markdown Bold and italic

HTML paragraph contains text with html tags.

Features

with contents

[sertaken tag="div" mode='html']I see tree is <span style='color:green'>green</span>, <span style='color:red'>Red</span> roses too.[/sertaken]

I see tree is green, Red roses too.

non relative path

[sertaken tag="p" file="/user/workspace/assets/footnote.txt" class="term"]

This is footnote.txt. It's a text file contains lines long enough for demo and test purpose. A text file (sometimes spelled textfile; an old alternative name is flatfile) is a kind of computer file that is structured as a sequence of lines of electronic text. A text file exists stored as data within a computer file system. In operating systems such as CP/M and MS-DOS, where the operating system does not keep track of the file size in bytes, the end of a text file is denoted by placing one or more special characters, known as an end-of-file marker, as padding after the last line in a text file.

flexken

Parameter

param desc
content or content itself
class tag element classes, use ";" for multiple class, eg: code;big

Basic Usage

[flexken class="fancy evenly row wrap"]
Content with fancy class.
Other Content inside fancy class.
[/flexken]

Content with fancy class.

Other Content inside fancy class.

avataaarken

Use the awesome Avataaars Library by Pablo Stanley (avataaars.com) in any javascript application.

Basic Usage

[avataaarken param="wink:'eyeRoll',hairColor:'black',width:'130',height:'130',top:'bun',clothingColor:'white'"]

References

qrken

qrken using EasyQRCodeJS. a feature-rich cross-browser pure JavaScript QRCode generation library.

Basic Usage

[qrken param="text:'http://semedia.web.id',width:130,height:130"]

References

https://github.com/ushelp/EasyQRCodeJS

<-- svg def -->