mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
05.42.2022 5c84ace36c5273bcd70094b7fcce5dc8b10b3a2a
fix: nonmatching div footer

1 files modified
53 ■■■■ changed files
layouts/partials/footer.html 53 ●●●● patch | view | raw | blame | history
layouts/partials/footer.html
@@ -1,35 +1,34 @@
<footer class="footer">
    <ul class="footer__list">
      <li class="footer__item">
        &copy;
        {{ if isset .context.Site.Params "copyright" }}
          {{ replace .context.Site.Params.copyright "{{ YEAR }}" (now.Format "2006") | markdownify }}
  <ul class="footer__list">
    <li class="footer__item">
      &copy;
      {{ if isset .context.Site.Params "copyright" }}
        {{ replace .context.Site.Params.copyright "{{ YEAR }}" (now.Format "2006") | markdownify }}
        {{ else }}
          {{ .context.Site.Params.author }}
          {{ now.Format "2006" }}
      {{ else }}
        {{ .context.Site.Params.author }}
        {{ now.Format "2006" }}
        {{ end }}
      </li>
      {{ range .context.Site.Menus.footer }}
        <li class="footer__item">
          <a
            class="link"
            href="{{ .URL }}"
            {{ if strings.HasPrefix .URL "http" }}
              target="_blank" rel="noopener noreferrer"
            {{ end }}
            title="{{ .Title }}"
          >
            {{ .Name }}
          </a>
        </li>
      {{ end }}
    </ul>
  </div>
    </li>
    {{ range .context.Site.Menus.footer }}
      <li class="footer__item">
        <a
          class="link"
          href="{{ .URL }}"
          {{ if strings.HasPrefix .URL "http" }}
            target="_blank" rel="noopener noreferrer"
          {{ end }}
          title="{{ .Title }}"
        >
          {{ .Name }}
        </a>
      </li>
    {{ end }}
  </ul>
</footer>
{{- partial "medium-zoom.html" .context -}}
{{- partial "math.html" .context -}}