4.14 components.pullquote Pullquote
Here's a variant of blockquote
for pullquotes specifically. By applying the
class pullquote
to a blockquote
element, we'll tap the component style.
Example
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
J. Smith
Markup: components/pullquote/pullquote.twig
<span class="xml"><span class="hljs-tag"><<span class="hljs-name">blockquote</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"pullquote"</span>></span>
<span class="hljs-tag"><<span class="hljs-name">p</span>></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere
erat a ante.<span class="hljs-tag"></<span class="hljs-name">p</span>></span>
<span class="hljs-tag"></<span class="hljs-name">blockquote</span>></span>
<span class="hljs-tag"><<span class="hljs-name">blockquote</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"pullquote"</span>></span>
<span class="hljs-tag"><<span class="hljs-name">p</span>></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere
erat a ante.<span class="hljs-tag"></<span class="hljs-name">p</span>></span>
<span class="hljs-tag"><<span class="hljs-name">cite</span>></span>J. Smith<span class="hljs-tag"></<span class="hljs-name">cite</span>></span>
<span class="hljs-tag"></<span class="hljs-name">blockquote</span>></span></span>
Source:
components/pullquote/_pullquote.scss
, line 1