Shortcodes

Status Card

Author oxypteros

Example

Investigation Status

Current Status: Cold Case - Inactive
Lead Agency: Los Santos Police Department
Last Known Action: Case review requested (2020) - No new leads identified.
Contact for Tips: Los Santos PD Cold Case Unit (555-1234)

Code

{{< status-card TITLE="Investigation Status" TYPE="info" >}} 
**Current Status**: Cold Case - *Inactive*
**Lead Agency:** Los Santos Police Department
**Last Known Action:** Case review requested (2020) - *No new leads identified*.
**Contact for Tips:** Los Santos PD Cold Case Unit (**555-1234**)
{{< /status-card >}}

Overview

A closed shortcode that renders an info, error, warning, or success card with an optional title and markdown styled text content.

Usage

  • Intended for inserting an informative status card related to the content.
  • This shortcode requires both opening and closing tags.

Parameters Reference

TITLE
TITLE="Example title" — (string, optional)
H2 heading.
TYPE
TYPE="error" — (string, optional)
Card types: error, warning, success or info.
Default value: info.
Inner Content
Main card content. Supports Markdown formatting.

Error Reporting

  • Warnings are printed to the Hugo terminal.
  • OCD enabled.

Error Codes

ocd-sc-131
Unrecognized parameter detected.
ocd-sc-130
Invalid TYPE value detected.
Edit this page on Github