SEO and footer default to true when undefined

This commit is contained in:
carpetscheme 2020-09-13 19:05:05 +02:00
parent fd05f8f230
commit 762399f920

View file

@ -16,7 +16,7 @@
<style>{{ data | safe }}</style> <style>{{ data | safe }}</style>
{% block seo -%} {% block seo -%}
{%- if config.extra.seo -%} {%- if config.extra.seo or config.extra.seo is undefined -%}
<meta property="og:site_name" content="{% block ogsitename %}{{config.title}}{% endblock ogsitename %}"> <meta property="og:site_name" content="{% block ogsitename %}{{config.title}}{% endblock ogsitename %}">
{% if config.extra.author -%} {% if config.extra.author -%}
@ -83,10 +83,10 @@
</nav> </nav>
{% endif %} {% endif %}
<small> <small>
{%- if config.extra.zola -%}Built with <a href="https://www.getzola.org/">Zola</a>{%- endif -%} {%- if config.extra.zola or config.extra.zola is undefined -%}Built with <a href="https://www.getzola.org/">Zola</a>{%- endif -%}
{%- if config.extra.netlify %} & hosted on <a href="https://netlify.com">Netlify</a>{%- endif -%} {%- if config.extra.netlify %} & hosted on <a href="https://netlify.com">Netlify</a>{%- endif -%}
{%- if config.extra.zola -%}.<br />{%- endif %} {%- if config.extra.zola or config.extra.zola is undefined -%}.<br />{%- endif %}
{% if config.extra.maintained_with_love %}Maintained with &hearts; for the web.<br />{% endif %} {% if config.extra.maintained_with_love or config.extra.maintained_with_love is undefined%}Maintained with &hearts; for the web.<br />{% endif %}
{% if config.extra.footer_tagline %}{{ config.extra.footer_tagline }}{% endif %} {% if config.extra.footer_tagline %}{{ config.extra.footer_tagline }}{% endif %}
</small> </small>
</footer> </footer>