gitea-pages/pages/formatting/adding_tooltips.md

895 B

title, permalink, tags, keywords, audience, last_updated, summary
title permalink tags keywords audience last_updated summary
Adding tooltips /adding_tooltips/
formatting
popovers writers, designers May 13, 2015 You can add tooltips to your content. These tooltips work well for glossary definitions.

{% include linkrefs.html %}

Because this theme is built on Bootstrap, you can simply use a specific attribute on an element to insert a tooltip.

Suppose you have a glossary.yml file inside your _data folder. You could pull in that glossary definition like this:

{% raw %}

<a href="#" data-toggle="tooltip" data-original-title="{{site.data.glossary.jekyll_platform}}">Jekyll</a> is my favorite tool for building websites.</a>

{% endraw %}

This renders to the following:

Jekyll is my favorite tool for building websites.