Hinode logo
  • About 
  • Docs 
  • Components 
  • Guides 
  • Releases 
  •  
Docs
  • Getting Started
    • Introduction
    • Commands
    • Hosting and Deployment
    • Upgrading
    • Private Modules and Packages
    • Contribute
    • Troubleshooting
  • Content
    • Content Management
    • Content Organization
    • Typography
    • Links and Cross-References
    • Images and Figures
    • Tables
    • Icons
  • Configuration
    • Layout
    • Colors
    • Color Modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Cookie Consent
    • Digital Asset Managers
  • Components
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Args
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Card
    • Card Group
    • Carousel
    • Collapse
    • Command Prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Ins
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and Tabs
    • Persona
    • Release
    • Spinner
    • Sub
    • Sup
    • Table
    • Timeline
    • Toast
    • Tooltip
    • Video
  • Advanced Settings
    • Overview
    • Styles
    • Scripts
    • Icons
    • Partial Development
    • Module Development
    • Server Headers
    • Server-Side Redirection
  • About
    • Credits
    • License
  • Getting Started
    • Introduction
    • Commands
    • Hosting and Deployment
    • Upgrading
    • Private Modules and Packages
    • Contribute
    • Troubleshooting
  • Content
    • Content Management
    • Content Organization
    • Typography
    • Links and Cross-References
    • Images and Figures
    • Tables
    • Icons
  • Configuration
    • Layout
    • Colors
    • Color Modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Cookie Consent
    • Digital Asset Managers
  • Components
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Args
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Card
    • Card Group
    • Carousel
    • Collapse
    • Command Prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Ins
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and Tabs
    • Persona
    • Release
    • Spinner
    • Sub
    • Sup
    • Table
    • Timeline
    • Toast
    • Tooltip
    • Video
  • Advanced Settings
    • Overview
    • Styles
    • Scripts
    • Icons
    • Partial Development
    • Module Development
    • Server Headers
    • Server-Side Redirection
  • About
    • Credits
    • License

Abbr

Share via
Hinode
Link copied to clipboard

Use the abbr shortcode to show the long form of an abbreviation.

On this page
Overview   Arguments   Data Format  

Overview  

Added in v0.19.0   

Use the abbr shortcode to show the long form of an abbreviation on hover. The abbreviation data is retrieved from a central data file. By default, the shortcode uses “data/abbr.yaml” with translation support.

HTML html
markdown
{{< abbr HTML >}}
{{< abbr key="html" class="initialism" >}}

Arguments  

The shortcode supports a single unnamed argument, which maps to the key argument. When using named parameters, the following arguments are supported:

Name Type Required Default Comment
class string Class attribute of the abbr element. For example, specify initialism for a slightly smaller font size.
data string abbr.yaml Filename of the abbrevation input. You can omit the file extension. The file should reside in the data folder. The data supports language extensions. For example, abbr.en.yaml refers to the English translation of the abbrevation data. The filename abbr.yaml is used when no suitable translation is found.
key string yes Case-insensitive key of the abbreviation. In shorthand notation, this is the first (and only) matched argument. Non-alphanumeric keys must be quoted.
Name Type Required Default
class string
Class attribute of the abbr element. For example, specify initialism for a slightly smaller font size.
data string abbr.yaml
Filename of the abbrevation input. You can omit the file extension. The file should reside in the data folder. The data supports language extensions. For example, abbr.en.yaml refers to the English translation of the abbrevation data. The filename abbr.yaml is used when no suitable translation is found.
key string yes
Case-insensitive key of the abbreviation. In shorthand notation, this is the first (and only) matched argument. Non-alphanumeric keys must be quoted.

Data Format  

Define a file in the data folder that contains the abbreviation data. The format expects the following attributes:

Attribute Required Description
id Yes Required key of the abbeviation. Store the key in lower case to ensure it can be matched.
long Yes Required long form of the abbreviation.

The following snippet defines three entries in yml format.

- id: css
  long: "Cascading Style Sheets"

- id: html
  long: "HyperText Markup Language"

- id: svg
  long: "Scalable Vector Graphics"
• Fix typo (4f88d89)
On this page:
Overview   Arguments   Data Format  
Abbr
Abbr
Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5.
Code licensed MIT, docs CC BY-NC 4.0
Currently v0.29.3
Privacy | Cookies
 
Links
Home 
About 
Docs 
Components 
Releases 
Guides
Getting Started 
Developing Modules 
Optimization 
Versioning 
Community
Issues   
Discussions   
Contribute 
Hinode
Code copied to clipboard