abakan-zz / ablog

ABlog for blogging with Sphinx
ablog.readthedocs.org
Other
122 stars 34 forks source link

Use Font-Awesome Icon in Content? #49

Closed nfarrar closed 9 years ago

nfarrar commented 9 years ago

Is there a way to use the font-awesome icons in post or page content?

abakan-zz commented 9 years ago

Not an ideal way, but you could use raw directive, e.g.

.. raw:: html

   <ul class="fa-ul">
     <li><i class="fa-li fa fa-check-square"></i>List icons</li>
     <li><i class="fa-li fa fa-check-square"></i>can be used</li>
     <li><i class="fa-li fa fa-spinner fa-spin"></i>as bullets</li>
     <li><i class="fa-li fa fa-square"></i>in lists</li>
   </ul>

What kind of use cases are you interested in? raw would not work to insert an icon in the middle of a paragraph. I was thinking of adding an inline role for that but wasn't sure if it would be used.