{% assign document = post | default: page %} {% assign author_count = document.authors | size %}
{{ document.description }}
{% if document.read_time or document.show_date %}

{% if document.show_date and document.date %} {% assign date = document.date %} {% assign date_format = site.date_format | default: "%B %-d, %Y" %} {% endif %} {% if document.read_time and document.show_date %}{% endif %} {% if document.read_time %} {% assign words_per_minute = document.words_per_minute | default: site.words_per_minute | default: 200 %} {% assign words = document.content | strip_html | number_of_words %} Posted by {% if author_count == 0 %} {{ document.author }} {% elsif author_count == 1 %} {{ document.authors | first }} {% else %} {% for author in document.authors %} {% if forloop.first and author_count == 2 %} {{ author }} {% elsif forloop.first and author_count > 2 %} {{ author }}, {% elsif forloop.last %} and {{ author }} {% else %} {{ author }}, {% endif %} {% endfor %} {% endif %}    {{ document.date | date: "%B %-d, %Y" }}     {% if words < words_per_minute %} {{ site.data.ui-text[site.locale].less_than | default: "less than" }} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }} {% elsif words == words_per_minute %} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }} {% else %} {{ words | divided_by: words_per_minute }} {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }} {% endif %} {% endif %}

{% endif %}