Shortcodes
About
Author
oxypteros

John Smith
The researcher and writer behind this blog. Driven by a deep fascination with the complexities of criminal cases and the quest for truth.
Join me in the quest to meticulously piecing together stories, analyzing evidence, and exploring the unanswered questions that linger long after the headlines fade.
The truth is here! (not out there)
Code
{{< about AUTHOR="John Smith" AVATAR="oxy.png" >}}
The researcher and writer behind this blog. Driven by a deep fascination with the complexities of criminal cases and the quest for **truth**.
Join me in the quest to meticulously piecing together stories, analyzing evidence, and exploring the unanswered questions that linger long after the headlines fade.
***The truth is here!*** *(not out there)*
{{< /about >}}
Overview
A minimal About the Author element with avatar, name, and bio text.
Usage
- Place the avatar image inside
/assets/img/
and set its filename (filename.jpg
) as the value for theAVATAR
parameter. The image will be resized and converted to WebP. - If the
AUTHOR
parameter is omitted, theauthor
value of the page will be used. - This shortcode requires both an opening and a closing tag
Parameters Reference
- AUTHOR
AUTHOR="Username"
— (string, optional)- The author name. Fallback to page frontmatter author.
- AVATAR
AVATAR="image.jpg"
— (string, optional)- Filename (including extension) of the avatar image, placed at
/assets/img/
. - Inner Content
- The main biography text. Markdown formatting supported.
Error Reporting
- Warnings are printed to the Hugo terminal.
- OCD enabled.
Error Codes
- ocd-sc-161
- Unrecognized parameter detected.
- ocd-sc-162
- Image not found. Check filename in
/assets/img/
path.