author

Information

Folder
src/components/elements/author

Files

Schema
Mocks
Template
// src/components/elements/author/author.twig

<p class="Author">
	<span class="Author-prefix">{{ pre_text }}</span>
	{% if image %}
		<span class="Author-image">
			{{ image }}
		</span>
	{% endif %}
	{% if url %}
		<a href="{{ url }}">
			<span class="Author-name">{{ name }}</span>
		</a>
	{% else %}
		<span class="Author-name">{{ name }}</span>
	{% endif %}
</p>

Error: schema is invalid: data/properties must be object

Variants

Author with image
Open

Author with image mock data

Raw
Resolved
Author without image
Open

Author without image mock data

Raw
Resolved
Author with url
Open

Author with url mock data

Raw
Resolved
Author with image and url
Open

Author with image and url mock data

Raw
Resolved