{{ $hasGetintouch := default false (index .Params "get_in_touch") }}
{{ $hasMotto := or .IsHome ( default false (index .Params "motto")) }}

<footer role="contentinfo">
  {{ if or $hasMotto $hasGetintouch }}
    <div class="container footer-elements">
      {{ if $hasMotto }}
        <div class="motto">
          <small><em>For the glory of mankind.</em></small>
        </div>
      {{ end }}
      {{ if $hasGetintouch }}
        {{- partial "getintouch.html" . -}}
      {{ end }}
    </div>
  {{ end }}

  <div class="container footer">
    <small>
      &copy;
      <time datetime="{{ now.UTC.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
        {{ now.UTC.Format "2006" }}</time> The DoubleFourteen Code Forge. All Rights Reserved.<br>
      <em>
        Code samples are MIT licensed, logos belong to their respective owners, everything else is
        <a href="https://creativecommons.org/licenses/by-sa/4.0/" class="external-link">
          CC BY-SA</a>.
      </em>
    </small>
  </div>
</footer>
