{{ if and .Site.Params.footer.enabled (or .Site.Params.footer.showOnHome (not .IsHome)) }}
<footer>
  <nav class="container">
    <div class="footer-left">
      {{ with .Site.Params.footer.leftText }}
        <p>{{ . | safeHTML }}</p>
      {{ end }}
    </div>
    <div class="footer-right">
      {{ with .Site.Params.footer.rightText }}
        <p>
          {{ . | safeHTML }}
          {{ if and $.Site.Params.theme.enabled $.Site.Params.theme.showToggle }}
            {{ if eq $.Site.Params.theme.positio