{#
The site's footer: a full-width bar under the layout, not a note at the foot
of the article. Text on one side, the social row on the other.
Two lines of text. The first is the copyright and the source of the page --
"Improve this page" where the page has an edit URL of its own, and the
repository otherwise, so that a reader can always find the source from here.
The second says what built the site.
Only renders when there is something to put in it. A site with no copyright,
no repository, no social links and the generator line turned off gets no bar
at all rather than an empty rule across the page.
Every link here leaves the documentation, so every link opens in a tab of its
own -- and says so, quietly. A new tab takes the Back button away from a
reader who did not ask for one, and someone who cannot see it happen has
nothing else to tell them it did.
#}
{%- import "partials/social-icons.html" as icons %}
{%- macro new_tab() -%}
{% trans %}(opens in a new tab){% endtrans %}
{%- endmacro %}
{%- set social = config.theme.social or [] %}
{%- set generator = config.theme.show_footer_generator %}
{%- set edit_url = page.edit_url if page else none %}
{%- set source = edit_url or config.repo_url %}
{%- if config.copyright or source or social or generator %}
{%- endif %}