larva objects: o-author
Available Variants
prototypeo-author
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
o-author
Twig The markup file.
<div class="o-author // {{ o_author_classes }}">
<span class="{{ o_author_by_classes }}">{{ o_author_text }}</span>
{% if c_span %}
{% include "@larva/components/c-span/c-span.twig" with c_span %}
{% endif %}
{% if c_tagline_author %}
{% include "@larva/components/c-tagline/c-tagline.twig" with c_tagline_author %}
{% endif %}
{% if c_timestamp %}
{% include "@larva/components/c-timestamp/c-timestamp.twig" with c_timestamp %}
{% endif %}
</div>
o-author
JSON The data object for this pattern.
{
"o_author_classes": "lrv-a-font-secondary-regular-m",
"o_author_text": "By ",
"c_span": {
"modifier_class": "",
"c_span_classes": "lrv-u-whitespace-nowrap",
"c_span_text": "Author Name",
"c_span_url": "",
"c_span_link_classes": ""
},
"c_timestamp": {
"c_timestamp_classes": "",
"c_timestamp_datetime_attr": "00:00-YY-DD-MM",
"c_timestamp_text": "July 3, 2001",
"c_timestamp_aria_label_attr": false
},
"c_tagline_author": false
}