{%- set lang_base_url = get_url(path=``, lang=lang) %} {%- if config.extra.footer.copyright %} {%- set copyright = config.extra.footer.copyright | replace(from=`$BASE_URL`, to=lang_base_url) %} {%- if config.extra.footer.license_url %} {%- set license_url = m_url::rel(there=m_url::get(url=config.extra.footer.license_url), here=g_here, base=g_base) %} {%- set copyright = copyright | replace(from=`$LICENSE_URL`, to=license_url) %} {%- endif %} {%- else %} {%- if config.author %} {%- set author_name = m_profiles::get_name(username=config.author) %} {%- set copyright = "© $YEAR " ~ author_name %} {%- else %} {%- set copyright = "© $YEAR" %} {%- endif %} {%- if config.extra.footer.license_url %} {%- set license_url = m_url::rel(there=m_url::get(url=config.extra.footer.license_url), here=g_here, base=g_base) %} {%- set copyright = '[' ~ copyright ~ '](' ~ license_url ~ ')' %} {%- endif %} {%- endif %} {%- set current_year = now() | date(format=`%Y`) | int %} {%- if config.extra.footer.since and config.extra.footer.since != current_year %} {%- set copyright_years = '' ~ config.extra.footer.since ~ ' - ' ~ current_year ~ '' %} {%- else %} {%- set copyright_years = '' ~ current_year ~ '' %} {%- endif %} {%- set copyright = copyright | replace(from=`$YEAR`, to=copyright_years) %} {{ copyright | markdown(inline=true) | safe }}
{{ m_i18n::tr(key=`footer_powered_by`, lk=g_lang_k, d=g_trans_d) }} ✎ {{ m_i18n::tr(key=`footer_theme_name`, lk=g_lang_k, d=g_trans_d) }}
{% include "injects/footer.html" ignore missing %}