24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
{% comment %}
|
|
|
|
Block quote
|
|
|
|
E.G. --> {% include feature/blockquote.html text="Knowledge comes, but wisdom lingers" speaker="Alfred Lord Tennyson" source="Locksley Hall" %}
|
|
|
|
Options:
|
|
- "text" = quote text, can use Markdown (required, hint: use a capture statement to add more complex text!)
|
|
- "speaker" = name of the person who said the quote (optional)
|
|
- "source" = title of the quote's source (optional)
|
|
- "link" = link to source, will be added to speaker/source (note: will not be added unless you have a speaker or source value!)
|
|
|
|
{%- endcomment -%}
|
|
<figure class="my-3 narrow-content">
|
|
<blockquote class="blockquote fs-3">
|
|
{{ include.text | markdownify }}
|
|
</blockquote>
|
|
{% if include.speaker or include.source %}
|
|
<figcaption class="blockquote-footer text-end fs-4">{% if include.link %}<a href="{{ include.link | relative_url }}">{% endif %}
|
|
{% if include.speaker %}{{ include.speaker }}{% if include.source %}, {% endif %}{% endif %}
|
|
{% if include.source %}<cite title="Source Title">{{ include.source }}</cite>{% endif %}
|
|
{% if include.link %}</a>{% endif %}</figcaption>{% endif %}
|
|
</figure>
|