# Expand :: Cap'n Hugo Relearrrn Theme
Documentation for Hugo Relearn Theme
Author: Sören Weber

# Expand

Arrr! Pirrrates

Fello' pirrates, be awarrre some stuff may not work fer us in this trrranslat'n. Like table of rrramblings, see'ng Merrrmaids, do'ng math or chemistrrry and stuff.

Th' `expand` shortcode displays an expandable/collaps'ble section o' text.

Expand me...
Thank ye!
Avast

This only works 'n modern browsers flawlessly. While Internet Explorer 11 has issues 'n display'n it, th' functionality still works.

## Usage

While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' use positional as well or also call this shortcode from yer own partials.

    {{% expand title="Expand me..." %}}Thank ye!{{% /expand %}}

    {{% expand "Expand me..." %}}Thank ye!{{% /expand %}}

    {{ partial "shortcodes/expand.html" (dict
      "context" .
      "title" "Expand me..."
      "content" "Thank ye!"
    )}}

### Parameter

Name | Posit'n | Default | Notes
--- | --- | --- | ---
title | 1 | `"Expand me..."` | Arbitrary text t' appear next t' th' expand/collapse ay'con.
open | 2 | `false` | When `true` th' rrrambl'n text will be initially shown as expanded.
<content> |  | <empty> | Arbitrary text t' be displayed on expand.

## Examples

### All Defaults

    {{% expand %}}Yes, ye did it!{{% /expand %}}

Expand me...
Yes, ye did it!

### Initially Expanded

    {{% expand title="Expand me..." open="true" %}}No need t' press ye!{{% /expand %}}

Expand me...
No need t' press ye!

### Arbitrary Text

    {{% expand title="Show me almost endless possibilities" %}}
    Ye can add standard markdown rules:

    - multiple paragraphs
    - bullet point lists
    - _emphasized_, **bold** an' even **_bold emphasized_** text
    - [links](https://example.com)
    - etc.

    ```plaintext
    ...and even source code
    ```

    > th' possibilities be endless (almost - includ'n other shorrrtcodes may or may not work)
    {{% /expand %}}

Show me almost endless possibilities

Ye can add standard markdown rules:

- multiple paragraphs
- bullet point lists
- emphasized, bold an' even bold emphasized text
- links
- etc.

    ...and even source code

> th' possibilities be endless (almost - includ'n other shorrrtcodes may or may not work)