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

Typography

Share via
Hinode
Link copied to clipboard

Use a mix of Markdown and HTML syntax to style your content.

On this page
Headings   H2. Heading   H3. Heading   Display Headings   Lead   Inline Text Elements   Native Markdown   Extended Styling   Emoji   Abbreviations   Blockquotes   Blockquote Without Attribution   Blockquote With Attribution   GitHub-Style Alerts   Code Blocks   List Types   Ordered List   Unordered List   Nested List   Task List   Mathematical Formulas  

Hinode uses a mix of basic Markdown syntax enriched with Bootstrap styling for the typography. The following paragraphs illustrate the most common applications. Refer to the Hugo documentation to review the extended description of supported Content Formats  . It also contains links to external resource about Markdown.

Headings  

Use the native Markdown character # to generate headings for your content. The following input represents six levels of section headings. They are generated as HTML <h1>—<h6> elements. <h1> is the highest section level while <h6> is the lowest.

H1. Heading  

H2. Heading  

H3. Heading  

H4. Heading  

H5. Heading  
H6. Heading  
markdown
# H1. Heading

## H2. Heading

### H3. Heading

#### H4. Heading

##### H5. Heading

###### H6. Heading

Alternatively, you can use .h1 through .h6 classes, for when you want to match the font styling of a heading but cannot use the associated HTML element. For example, using a .h2 class will exclude the section heading from the generated Table of Contents.

H1

H2

H3

H4

H5

H6

markdown
H1
{.h1}

H2
{.h2}

H3
{.h3}

H4
{.h4}

H5
{.h5}

H6
{.h6}

Display Headings  

Display a larger, slightly more opinionated heading style by adding the .display class.

Display 1

Display 2

Display 3

Display 4

Display 5

Display 6

markdown
Display 1
{.display-1}

Display 2
{.display-2}

Display 3
{.display-3}

Display 4
{.display-4}

Display 5
{.display-5}

Display 6
{.display-6}

Lead  

Make a paragraph stand out by adding the .lead class.

This is a lead paragraph. It stands out from regular paragraphs.

markdown
This is a lead paragraph. It stands out from regular paragraphs.
{.lead}

Inline Text Elements  

You can use native Markdown to apply basic styling. Use HTML elements for additional formatting options.

Native Markdown  

Use native Markdown apply basic styling to your text.

This is bold text

This text is italicized

This was mistaken text

This text is extremely important

All this text is important

markdown
**This is bold text**

_This text is italicized_

~~This was mistaken text~~

**This text is _extremely_ important**

***All this text is important***

Extended Styling  

Added in v0.19.0   

Use shortcodes and classes for additional styling options. The following example illustrates highlighting, fine print, subscript, and superscript.

You can use the mark shortcode to highlight text.

This line of text is meant to be treated as fine print.

H2O is a liquid.

210 is 1024.

This is an underlined text.

markdown
You can use the mark shortcode to {{< mark >}}highlight{{< /mark >}} text.

This line of text is meant to be treated as fine print.
{.small}

H{{< sub 2 >}}O is a liquid.

2{{< sup 10 >}} is 1024.

This is an {{< ins >}}underlined text{{< /ins >}}.

Emoji  

Use shortcodes to insert Emoji into your content. You can use this List of Emoji  shortcodes as a reference, although the results may vary across browsers and devices. The following example inserts an inline smiley.

That is so funny! :smiley: That is so funny! :smiley:

The result looks like this:

That is so funny! 😃

Abbreviations  

Use the Abbr Shortcode for abbreviations and acronyms to show the expanded version on hover. Abbreviations have a default underline and gain a help cursor to provide additional context on hover and to users of assistive technologies.

HTML
markdown
{{< abbr HTML >}}

Blockquotes  

  Note

Since release v0.25.2  , blockquotes no longer require an additional styling directive. You can drop the now obsolete {.blockquote} from your input.

The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations. Use the > Markdown character to generate a blockquote.

Blockquote Without Attribution  

The following Markdown generates a blockquote without attribution.

Tiam, ad mint andaepu dandae nostion secatur sequo quae. Note that you can use Markdown syntax within a blockquote.

markdown
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use _Markdown syntax_ within a blockquote.

Blockquote With Attribution  

The following Markdown generates a blockquote with attribution. The citation itself is added to the bottom of the page.

Don’t communicate by sharing memory, share memory by communicating.

— Rob Pike1


  1. The above quote is excerpted from Rob Pike’s talk  during Gopherfest, November 18, 2015. ↩︎

markdown
> Don't communicate by sharing memory, share memory by communicating.
>
> — _Rob Pike[^1]_

[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.

GitHub-Style Alerts  

Added in v0.25.5   

You can add an alert designator to a blockquote to generate a GitHub-style alert.

  Note

Useful information that users should know, even when skimming content.

  Tip

Helpful advice for doing things better or more easily.

  Important

Key information users need to know to achieve their goal.

  Warning

Urgent info that needs immediate user attention to avoid problems.

  Caution

Advises about risks or negative outcomes of certain actions.

markdown
> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

Code Blocks  

Use a single backtick ` character to denote an inline code element. Use triple backticks ``` to denote the start and end of a code block. Add the language to the opening backticks to specify the syntax. Hugo uses Chroma highlighting to style the syntax of Supported Languages  . The following example defines an HTML code block.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Example HTML5 Document</title>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>
markdown
```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Example HTML5 Document</title>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>
```

List Types  

Use native Markdown to define ordered lists, unordered lists, and nested lists.

Ordered List  

The following Markdown defines an ordered list of three items. The sequence is automatically determined, so simply add 1. at the start of each element. The Linting Rules will raise an error if you add the sequence numbering yourself.

  1. First item
  2. Second item
  3. Third item
markdown
1. First item
1. Second item
1. Third item

Unordered List  

Use the - character to denote an unordered list.

  • List item
  • Another item
  • And another item
markdown
- List item
- Another item
- And another item

Nested List  

Use indentation and the - character to denote a nested list.

  • Fruit
    • Apple
    • Orange
    • Banana
  • Dairy
    • Milk
    • Cheese
markdown
- Fruit
  - Apple
  - Orange
  - Banana
- Dairy
  - Milk
  - Cheese

Task List  

Use the - character followed by either [x] or [ ] to indicate a (completed) task.

  • Write the press release
  • Update the website
  • Contact the media
markdown
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

Mathematical Formulas  

Added in v0.16.0   

Use KaTeX  to add mathematical formulas to your content pages. You can use server-side math rendering since Hinode release v0.26.0  . Add the following configuration to your site configuration (e.g. hugo.toml) to configure the required passthrough delimiters:

[markup.goldmark]
    [markup.goldmark.extensions.passthrough]
        enable = true
    [markup.goldmark.extensions.passthrough.delimiters]
        block = [['\[', '\]'], ['$$', '$$']]
        inline = [['\(', '\)'], ['$', '$']]

Alternatively, you can use the Mod-Katex Module  to include a client-side script and custom style. Be sure to include katex in your Module Configuration and Page Frontmatter as needed.

The following example displays an inline and block element formula using the configured delimiters $ and $$.

This is an inline −b±b2−4ac2a-b \pm \sqrt{b^2 - 4ac} \over 2a formula

This is not an inline formula:

x=a0+1a1+1a2+1a3+a4x = a_0 + \frac{1}{a_1 + \frac{1}{a_2 + \frac{1}{a_3 + a_4}}} ∀x∈X,∃y≤ϵ\forall x \in X, \quad \exists y \leq \epsilon
markdown
This is an inline $-b \pm \sqrt{b^2 - 4ac} \over 2a$ formula

This is not an inline formula:

$$x = a_0 + \frac{1}{a_1 + \frac{1}{a_2 + \frac{1}{a_3 + a_4}}}$$
$$\forall x \in X, \quad \exists y \leq \epsilon$$

You can also include a codeblock of type math to render an inline element wrapped in a codeblock. In this case you should omit any delimiters.

−b±b2−4ac2a-b \pm \sqrt{b^2 - 4ac} \over 2a
markdown
```math
-b \pm \sqrt{b^2 - 4ac} \over 2a
```
• Update to Hinode v0.27.13 (b6f5054)
On this page:
Headings   H2. Heading   H3. Heading   Display Headings   Lead   Inline Text Elements   Native Markdown   Extended Styling   Emoji   Abbreviations   Blockquotes   Blockquote Without Attribution   Blockquote With Attribution   GitHub-Style Alerts   Code Blocks   List Types   Ordered List   Unordered List   Nested List   Task List   Mathematical Formulas  
Typography
Typography
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