{# Displays the copyright information (which is defined in conf.py). #}
{%- macro copyright_block() %}
{%- if hasdoc('copyright') %}
{%- set copyright_prefix = '' + _('Copyright') + '' -%}
{%- else %}
{%- set copyright_prefix = _('Copyright') %}
{%- endif %}
{%- if copyright is iterable and copyright is not string %}
{% for copyright_line in copyright %}
{% trans trimmed copyright_prefix=copyright_prefix, copyright=copyright_line|e %}
© {{ copyright_prefix }} {{ copyright }}.
{% endtrans %}
{%- if not loop.last %}
{%- endif %}
{% endfor %}
{%- else %}
{% trans trimmed copyright_prefix=copyright_prefix, copyright=copyright|e %}
© {{ copyright_prefix }} {{ copyright }}.
{% endtrans %}
{%- endif %}
{%- endmacro %}
{% if show_copyright and copyright %}
{{- copyright_block() -}}
{% endif %}