larva modules: article-timestamp
Available Variants
prototypearticle-timestamp
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
article-timestamp
Twig The markup file.
<div class="article-timestamp // {{ article_timestamp_classes }}">
{% if c_timestamp %}
{% include "@larva/components/c-timestamp/c-timestamp.twig" with c_timestamp %}
{% endif %}
</div>
article-timestamp
JSON The data object for this pattern.
{
"article_timestamp_classes": "lrv-u-display-block lrv-u-margin-t-050@mobile-max",
"c_timestamp": {
"c_timestamp_classes": "lrv-u-font-size-14 lrv-u-text-transform-uppercase lrv-u-color-black lrv-u-display-inline-block",
"c_timestamp_datetime_attr": "2019-09-03",
"c_timestamp_text": "September 3, 2019 7:51pm",
"c_timestamp_aria_label_attr": false
}
}