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

Alexander Bilz
22.36.2025 11aa6c0e99e3cc941f7a74d74b93a22ee7162c34
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<footer class="footer footer__{{ .footerClassModifier }}">
  <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" }}
      {{ 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>
</footer>
{{- partial "medium-zoom.html" .context -}}
{{- if (hasPrefix .context.Site.Config.Services.GoogleAnalytics.ID "G-") -}}
  {{- template "_internal/google_analytics.html" .context -}}
{{- end -}}
{{- if and (hugo.IsProduction) (.context.Site.Params.gtagId) -}}
  {{ partial "google-analytics-gtag-async.html" .context }}
{{- end -}}