Shortcodes

Social Networks

Author oxypteros

Example:

Code

{{< social LIMIT="17" >}}

Overview

Renders a minimal list of social network links with icons for major platforms.

Usage

  • The shortcode will render the menu sc_social defined in your site’s configuration file (/config/_default/menus.toml).
  • You can limit the number of entries shown using the optional LIMIT parameter.
  • For more details, refer to the social menu documentation.

Parameters Reference

LIMIT
LIMIT="5" — (integer, optional)
The number of items to display from the sc_social menu.

Error Reporting

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

Error Codes

ocd-sc-171
Unrecognized parameter detected.
ocd-sc-172
Menu sc_social is not defined.
ocd-sc-173
Invalid value for parameter LIMIT. Must be an integer.
Edit this page on Github