Deprecate the animated_favicon variable
APNG seems to be well supported so it's not needed I guess
This commit is contained in:
@ -1,68 +1,60 @@
|
||||
<footer id="site-footer">
|
||||
{% if config.extra.footer.links %}
|
||||
{%- if config.extra.footer.links -%}
|
||||
<nav>
|
||||
<ul>
|
||||
{% for link in config.extra.footer.links %}
|
||||
{%- if link.url is matching('https?://') %}
|
||||
{%- for link in config.extra.footer.links -%}
|
||||
{%- if link.url is matching('https?://') -%}
|
||||
<li>
|
||||
<a href="{{ link.url }}"
|
||||
{% if current_url | default(value='/') | trim_end_matches(pat='/') | safe == link.url | trim_end_matches(pat='/') | safe %}
|
||||
class="active"
|
||||
{% endif %}>
|
||||
<a href="{{ link.url }}">
|
||||
{{ macros_translate::translate(key=link.name, default=link.name, language_strings=language_strings) }}
|
||||
</a>
|
||||
</li>
|
||||
{%- else %}
|
||||
{%- else -%}
|
||||
<li>
|
||||
<a href="{{ get_url(path=link.url, lang=lang)}}"
|
||||
{% if current_url | default(value='/') | trim_end_matches(pat='/') | safe == get_url(path=link.url, lang=lang) | trim_end_matches(pat='/') | safe %}
|
||||
class="active"
|
||||
{% endif %}>
|
||||
<a href="{{ get_url(path=link.url, lang=lang)}}">
|
||||
{{ macros_translate::translate(key=link.name, default=link.name, language_strings=language_strings) }}
|
||||
</a>
|
||||
</li>
|
||||
{%- endif %}
|
||||
{% endfor %}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
||||
{% if config.extra.footer.show_copyright %}
|
||||
<p title="Last built at {{ now() | date(format='%F %a %R') }}">
|
||||
{% if config.extra.footer.copyright %}
|
||||
{{ config.extra.footer.copyright }}
|
||||
{% else %}
|
||||
© {{ config.title }}, {{ now() | date(format="%Y") }}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{%- if config.extra.footer.show_copyright -%}
|
||||
{%- if config.extra.footer.copyright -%}
|
||||
{{ config.extra.footer.copyright | markdown | safe }}
|
||||
{%- else -%}
|
||||
<p>© {{ config.title }}, {{ now() | date(format="%Y") }}</p>
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
|
||||
{% if config.extra.source_url and config.extra.footer.show_source %}
|
||||
{%- if config.extra.source_url and config.extra.footer.show_source -%}
|
||||
<p>
|
||||
<a href="{{ config.extra.source_url }}">
|
||||
{{ macros_translate::translate(key="source", default="Website source", language_strings=language_strings) }}
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
||||
{% if config.extra.footer.show_powered_by %}
|
||||
{%- if config.extra.footer.show_powered_by -%}
|
||||
<p>
|
||||
<small>
|
||||
{{ macros_translate::translate(key="powered_by", default="Powered by", language_strings=language_strings) }} <a class="link" href="https://www.getzola.org">Zola</a> {{ macros_translate::translate(key="powered_by_and", default="and", language_strings=language_strings) }} <a class="link" href="https://daudix.codeberg.page/duckquill">Duckquill</a>
|
||||
</small>
|
||||
</p>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
||||
{% if config.extra.footer.socials %}
|
||||
{%- if config.extra.footer.socials -%}
|
||||
<ul id="socials">
|
||||
{% for link in config.extra.footer.socials %}
|
||||
{%- for link in config.extra.footer.socials -%}
|
||||
<li>
|
||||
<a href="{{ link.url | safe }}" rel="me" title="{{ link.name }}">
|
||||
<i class="icon" style='mask-image: url("data:image/svg+xml,{{ link.icon }}"); -webkit-mask-image: url("data:image/svg+xml,{{ link.icon }}")'></i>
|
||||
<span>{{ link.name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
</footer>
|
||||
|
Reference in New Issue
Block a user