Add profile shortcode

This commit is contained in:
James Panther
2024-08-29 10:35:24 +10:00
parent 6cbc0ccd63
commit b8a8f96010
7 changed files with 60 additions and 23 deletions
@@ -234,3 +234,23 @@ B-->C[Profit]
{{< /mermaid >}}
You can see some additional Mermaid examples on the [diagrams and flowcharts samples]({{< ref "diagrams-flowcharts" >}}) page.
## Profile
The `profile` shortcode inserts a block displaying the site author's details. The same template is used on Congo's homepage layouts, but can also be inserted in any article content. It has one optional parameter:
<!-- prettier-ignore-start -->
|Parameter|Description|
|---|---|
|`align`|The alignment of the profile elements - valid options include `start`, `center` and `end`. If no value is provided, the `center` alignment will be used.|
<!-- prettier-ignore-end -->
The template is populated using the author parameters set in the [Language Configuration]({{< ref "configuration#configuration" >}}).
**Example:**
```md
{{</* profile align="center" */>}}
```
{{< profile align="center" >}}