ezhil/layouts/partials/footer.html

38 lines
1.2 KiB
HTML

<div class="footer wrapper">
<nav class="nav">
{{- if .Page.Lastmod }}
Last updated {{ .Page.Lastmod.Format "January 2, 2006" }}
{{- end }}
{{- if .Site.Copyright }}
<div>{{ with .Site.Copyright }} {{ . }} | {{ end }}
<a href="https://github.com/vividvilla/ezhil">Ezhil theme</a> | Built with <a
href="https://gohugo.io">Hugo</a></div>
{{- end }}
</nav>
</div>
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
<script async src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
{{- else if (isset .Site.Params "social") -}}
<script async src="{{ .Site.BaseURL }}js/feather.min.js"></script>
{{ end }}
<script async src="{{ .Site.BaseURL }}js/main.js"></script>
{{- if isset .Site.Params "customjs" -}}
{{- range .Site.Params.customJS }}
{{- if or (hasPrefix . "http://") (hasPrefix . "https://") }}
<script async src="{{ . }}"></script>
{{- else }}
<script async src="{{ $.Site.BaseURL }}{{ . }}"></script>
{{- end }}
{{- end }}
{{- end }}
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{- with .Site.Params.Social -}}
<script>
feather.replace()
</script>
{{- end -}}