{% if config_["footer"] %}
  <footer>
    {% if config_["footer"]["copyright"] %}
      <div class="footer-copyright">
        <p class="footer-primary">&copy;
        {% if config_["footer"]["copyright"]["year"] %}
          {{ config_["footer"]["copyright"]["year"] }}
        {% else %}
          {% if config_["footer"]["copyright"]["year_start"] and config_["footer"]["copyright"]["year_end"] %}
             {{ config_["footer"]["copyright"]["year_start"] }} - {{ config_["footer"]["copyright"]["year_end"] }}
          {% endif %}
        {% endif %}
        {% if config_["footer"]["copyright"]["author"] %}
          {{ config_["footer"]["copyright"]["author"] }}
        {% endif %}
        </p>
      </div>
    {% endif %}

    {% if config_["footer"]["credits"] %}
      <div class="footer-credits">
        <p class="footer-secondary">
        {% if config_["footer"]["credits"]["mikula"] %}
          Generated by
            <a href="https://github.com/RomanKosobrodov/mikula">Mikula</a> version {{ config_["mikula_version"] }}
          {% if config_["footer"]["credits"]["theme"] %}
            {{" | "}}
          {% endif %}
        {% endif %}
        {% if config_["footer"]["credits"]["theme"] %}
            Theme {{ config_["theme"]["name"] }} by
              <a href="{{ config_['theme']['link'] }}">{{ config_["theme"]["author"] }}</a>
        {% endif %}
        </p>
      </div>
    {% endif %}
  </footer>
{% endif %}
