Shortcodes

Table of Contents

Minimo comes with several shortcodes built-in.


Shortcode: center

Center align you content.

center: Parameters

  • Markdown content between opening and closing tags.

center: Usage Example

{{< center >}}
_Center Aligned Text_
{{< /center >}}

Output

Center Aligned Text

Shortcode: convo

Renders conversation blocks.

convo: Parameters

  • sep [String] (optional): seperator between person and text (default: “:”)

convo: Inner Syntax

person :: text

You can remove the person part, if you want.

convo: Usage Example

{{< convo sep=":" >}}

Jerry :: You don't look so tough.

Finch :: It's because I have only two modes, Jerry. Calm, and furious. It's a rare person that sees the latter and lives to talk about it.

{{< /convo >}}

Output

  1. Jerry
    :
    You don’t look so tough.
  2. Finch
    :
    It’s because I have only two modes, Jerry. Calm, and furious. It’s a rare person that sees the latter and lives to talk about it.

Shortcode: file

Include content from seperate file with syntax highlighting.

file: Parameters

0 => filename [String] (required)
1 => filetype [String] (optional)

file: Usage Example

{{< file "content/_index.md" >}}

Output

---
title: Home
menu:
  - main
  # - sidebar
weight: -270
---
> The Golden Rule is that there are no golden rules.
<!--知识是一宝库,而实践就是开启宝库大门的钥匙。-->
> — Fuller

Shortcode: text

Text with custom size and color

text: Parameters

You can use either Named or Unnamed Parameters

Named Parameters

  • s or size [String] (optional): multiplier relative to the normal size
  • c or color [String] (optional): name / hex / rgb / rgba

Unnamed Parameters

0 => textsize [String] (required): multiplier relative to the normal size
1 => textcolor [String] (optional): name / hex / rgb / rgba

text: Usage Example

{{< text s="1.4" color="purple" >}}
font-size: 1.4em;
color: purple;
{{< /text >}}

Output

font-size: 1.5em;
color: purple;