⏱️ 2 min read
Shortcode Plugin
The Shortcode Plugin provides a powerful syntax for embedding dynamic components using [[ name: args ]].
Table of Contents
Syntax
[[ name: arg1, key=val, arg2="quoted value" ]]
Available Shortcodes
Alert
Displays a themed message box.
- args:
type(info, success, warning, error),text(or first positional argument). - Example:
[ alert: type=warning, text="This is a warning" ]]or[ alert: success, "Action complete" ]]
This is an information
This is a success
This is a warning
This is an error
Button
Renders a themed link button.
- args:
url,text,type(primary, outline, ghost). - Example:
[ button: url="https://google.com", text="Search", type=outline ]]
my Websitemy other websiteanother website of mine
YouTube
Embeds a responsive YouTube video.
- args:
id(or first positional argument). - Example:
[ youtube: dQw4w9WgXcQ ]]or[ youtube: id=dQw4w9WgXcQ ]]
Configuration
Enable in fluid.cfg:
[plugins]
enabled=..., shortcode
ℹ Note due to the plugins are active,
[]is used instead of the usual double-curly braces ({ }) to avoid parsing.