SEO and footer default to true when undefined
This commit is contained in:
parent
fd05f8f230
commit
762399f920
|
@ -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 ♥ for the web.<br />{% endif %}
|
{% if config.extra.maintained_with_love or config.extra.maintained_with_love is undefined%}Maintained with ♥ 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>
|
||||||
|
|
Loading…
Reference in a new issue