--- title: Glossaries audience: writer, designer tags: formatting keywords: last_updated: summary: --- {% include linkrefs.html %} You can create a glossary for your content. First create your glossary items in a data file such as glossary.yml. Then create a page and use definition list formatting, like this: ```html
fractious
{{site.data.glossary.fractious}}
gratuitous
{{site.data.glossary.gratuitous}}
haughty
{{site.data.glossary.haughty}}
gratuitous
{{site.data.glossary.gratuitous}}
impertinent
{{site.data.glossary.impertinent}}
intrepid
{{site.data.glossary.intrepid}}
``` Here's what that looks like:
fractious
{{site.data.glossary.fractious}}
gratuitous
{{site.data.glossary.gratuitous}}
haughty
{{site.data.glossary.haughty}}
gratuitous
{{site.data.glossary.gratuitous}}
impertinent
{{site.data.glossary.impertinent}}
intrepid
{{site.data.glossary.intrepid}}
The glossary works well as a link in the top navigation bar. ## Horizontally styled definiton lists You can also change the definition list (`dl`) class to `dl-horizontal`. This is a Bootstrap specific class. If you do, the styling looks like this:
fractious
{{site.data.glossary.fractious}}
gratuitous
{{site.data.glossary.gratuitous}}
haughty
{{site.data.glossary.haughty}}
gratuitous
{{site.data.glossary.gratuitous}}
impertinent
{{site.data.glossary.impertinent}}
intrepid
{{site.data.glossary.intrepid}}
If you squish your screen small enough, at a certain breakpoint this style reverts to the regular `dl` class. Although I like the side-by-side view for shorter definitions, I found it problematic with longer definitions.