mirror of
https://git.theinfopunk.com/punk/thewwwdotcom-blog.git
synced 2024-10-22 21:20:16 -04:00
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
|
<footer class="footer footer__{{ .footerClassModifier }}">
|
||
|
<ul class="footer__list">
|
||
|
<li class="footer__item">
|
||
|
©
|
||
|
{{ 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 -}}
|
||
|
{{- partial "math.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 -}}
|