Title and subtitle

The b.Title constructor creates a title. The b.Subtitle constructor creates a subtitle.

ModifierAction
b.SpacedMaintain normal spacing between title and the following subtitle
b.TitleLevel1Set size to 1
b.TitleLevel2Set size to 2
b.TitleLevel3Set size to 3
b.TitleLevel4Set size to 4
b.TitleLevel5Set size to 5
b.TitleLevel6Set size to 6

Bulma examples

Example
Code
b.Title("Title"),
b.Subtitle("Subtitle")
ResultHTML

Title

Subtitle

Sizes

Example
Code
b.Title(b.TitleLevel1, "Title 1"),
b.Title(b.TitleLevel2, "Title 2"),
b.Title(b.TitleLevel3, "Title 3"),
b.Title(b.TitleLevel4, "Title 4"),
b.Title(b.TitleLevel5, "Title 5"),
b.Title(b.TitleLevel6, "Title 6")
ResultHTML

Title 1

Title 2

Title 3

Title 4

Title 5
Title 6
Example
Code
b.Subtitle(b.TitleLevel1, "Subtitle 1"),
b.Subtitle(b.TitleLevel2, "Subtitle 2"),
b.Subtitle(b.TitleLevel3, "Subtitle 3"),
b.Subtitle(b.TitleLevel4, "Subtitle 4"),
b.Subtitle(b.TitleLevel5, "Subtitle 5"),
b.Subtitle(b.TitleLevel6, "Subtitle 6")
ResultHTML

Subtitle 1

Subtitle 2

Subtitle 3

Subtitle 4

Subtitle 5
Subtitle 6
Example
Code
b.Block(
	b.Title(b.TitleLevel1, html.P, "Title 1"),
	b.Subtitle(b.TitleLevel3, html.P, "Subtitle 3"),
),
b.Block(
	b.Title(b.TitleLevel2, html.P, "Title 2"),
	b.Subtitle(b.TitleLevel4, html.P, "Subtitle 4"),
),
b.Block(
	b.Title(b.TitleLevel3, html.P, "Title 3"),
	b.Subtitle(b.TitleLevel5, html.P, "Subtitle 5"),
)
ResultHTML

Title 1

Subtitle 3

Title 2

Subtitle 4

Title 3

Subtitle 5

Example
Code
b.Block(
	b.Title(b.TitleLevel1, html.P, b.Spaced, "Title 1"),
	b.Subtitle(b.TitleLevel3, html.P, "Subtitle 3"),
),
b.Block(
	b.Title(b.TitleLevel2, html.P, b.Spaced, "Title 2"),
	b.Subtitle(b.TitleLevel4, html.P, "Subtitle 4"),
),
b.Block(
	b.Title(b.TitleLevel3, html.P, b.Spaced, "Title 3"),
	b.Subtitle(b.TitleLevel5, html.P, "Subtitle 5"),
)
ResultHTML

Title 1

Subtitle 3

Title 2

Subtitle 4

Title 3

Subtitle 5