{%- assign author = site.data.authors[page.author] -%} {%- if author -%}  by  {%- unless author.email == empty -%} {{- author.name | strip | normalize_whitespace | xml_escape -}} {%- endunless -%} {%- if author.email == empty -%} {{- author.name | strip | normalize_whitespace | xml_escape -}} {%- endif -%}   {%- endif -%}