Shortcodes
Innehållsförteckning...
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
-
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.
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
linkTitle: HEM
menu: main
weight: -270
---
> Välkommen! Här hittar du information om våra aktiviteter.
För kommande och tidigare evenemang, <span style="font-size:larger;"><b>[klicka här](/tags/evenemang)!</b></span>
<!-- https://orebrolakare.netlify.com/tags/Evenemang -->
<!-- Följ oss på twitter: <a href="https://twitter.com/orebrolakare?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-show-count="false">Follow @orebrolakare</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> <\!-- (Följ) -\-> -->
Vill du vara säker på att få våra inbjudningar eller ändra din epostadress? 🔗 [Klicka här för att registrera din epostadress](https://forms.gle/UQpCDNmSj6gNDbzu7). _Har du tidigare deltagit i eller anmält dig till något av våra evenemang har vi redan din epostadress. Vi använder den senast registrerade adressen för utskick._
Vill du kontakta oss eller lämna synpunkter? Eposta genom att klicka på det lilla kuvertet längst ner på sidan.
Shortcode: text
Text with custom size and color
text: Parameters
You can use either Named or Unnamed Parameters
Named Parameters
s
orsize
[String
] (optional): multiplier relative to the normal sizec
orcolor
[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;