added tooltip instruction

This commit is contained in:
Tom Johnson
2015-04-23 15:34:05 -07:00
parent cb23dc688f
commit a149eca341
6 changed files with 151 additions and 97 deletions

View File

@ -0,0 +1,18 @@
---
title: Adding tooltips
permalink: /adding_tooltips/
---
You can add tooltips to your content. 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:
```html
<a href="#" data-toggle="tooltip" data-original-title="{{site.data.glossary.jekyll_platform}}">Jekyll is my favorite tool for building websites.</a>
```
This renders to the following:
<a href="#" data-toggle="tooltip" data-original-title="{{site.data.glossary.jekyll_platform}}">Jekyll is my favorite tool for building websites.</a>