{%- assign author = page.author | default: page.authors[0] | default: site.author -%} {%- assign author = site.data.authors[author] | default: author -%}
{%- if author.picture -%} {%- if author.picture contains "://" -%} {%- assign author_picture = author.picture -%} {%- else -%} {%- assign author_picture = author.picture | relative_url -%} {%- endif -%} {{ author.name }} {%- endif -%}
{%- if author.name -%}
{% if site.data.text[site.locale].by %}{{ site.data.text[site.locale].by }} {% endif %}{{ author.name }}
{%- endif -%} {%- if author.links -%} {%- endif -%} {% if site.read_time %}{% include read-time.html %}{% endif %} {% if page.date %}{% include page-date.html %}{% endif %}