Skip to content

Commit

Permalink
fix: nonmatching div footer
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrblz committed Feb 5, 2022
1 parent 07c2702 commit 5c84ace
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -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 }}
</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 }}
title="{{ .Title }}"
>
{{ .Name }}
</a>
</li>

{{ end }}
</ul>
</div>
{{ end }}
</ul>
</footer>
{{- partial "medium-zoom.html" .context -}}
{{- partial "math.html" .context -}}
Expand Down

0 comments on commit 5c84ace

Please sign in to comment.