Really simple way to add a dynamically generated blockquote from text within an article. Specified with either float "right" or float "left".
Required: jQuery
How To:
- Write your article.
- Put
span
tags around whatever text you want to be in a blockquote, and add the class "callout-right" or "callout-left" to the span. - Include the
addBlockquote.js
file or just drop it at the end off a script tag. - Include
addBlockquote.css
or just make "left" and "right" classes in CSS withfloat: left;
andfloat: right;
assigned respectively.
Something like this is normally a better option than just copying and pasting the text into a blockquote
tag because search engines will give duplicated content less value, essentially negating the whole point of blockquote (to emphasize).