{% macro html(byline) %} {% set comma = joiner() %}

By {%- for author in byline -%} {% if not loop.last %}{{ comma() }}{% elif not loop.first %} and{% endif %} {%- endfor -%}

{% endmacro %} {% macro ldjson(byline) %} {% for author in byline %}{ {% if author.name %}"name": "{{ author.name }}",{% endif %} {% if author.url %}"url": "{{ author.url }}",{% endif %} "@type": "Person" }{% if not loop.last %},{% endif %}{% endfor %} {% endmacro %}