Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (32 loc) · 1.6 KB

2019-09-09-subtitles.md

File metadata and controls

42 lines (32 loc) · 1.6 KB
subtitle
Posts can have subtitles, which appear in large text beneath the title. "Lead" paragraphs also use the same large text style.

Subtitles and Lead Paragraphs

To give a post a subtitle by add a subtitle to its YAML front matter:

---
title: Subtitles and Lead Paragraphs
subtitle: Posts can have subtitles, which appear in large text beneath the title.
---

Subtitles appear beneath the title at the top of the page, in large text.

You can also use this large text style anywhere in a page by creating a paragraph with the CSS class lead. For example this:

<p class="lead">This is a "lead" paragraph. It stands out more than other
paragraphs. These can go anywhere on the page, not just at the top of
posts.</p>

Will render like this:

This is a "lead" paragraph. It stands out more than other paragraphs. These can go anywhere on the page, not just at the top of posts.

Inline elements like <code>, <kbd> and <samp> also work in subtitles and lead paragraphs:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor `incididunt` ut labore et dolore magna aliqua. Ut enim ad minim veniam, `quis` nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.