Files
cocoa-eh-hugo-theme/layouts/partials/footer.html
Michael Noronha 969bd5ca4e Fix validation HTML validation errors (#62)
* Make the theme compliant with W3C standards (#55)

* Dropped the line because chrome tab is deprecated.

* On header, "li" elements are meant to surround the "a" elements and not the other way around.

* Dropped all section tags I could find at first glance, as they had no semantic meaning and were firing warnings at the W3C validator.

* Change "middot" from a helper div to a helper class since putting div's inside ul's is not compliant

* Fixed a problem of the previous commit. A middot would not hide if on mobile.

* Fix archetypes bug with Go templates

* Fix additional validation error in 404
2017-11-09 16:22:28 -06:00

67 lines
2.2 KiB
HTML

<div class="footer column">
<div class="container">
{{ if .Site.Params.githubRepo }}
<div class="copyright">
<a href="https://github.com/{{ .Site.Params.githubRepo }}/tree/master/content/{{ .File.Path }}" target="_blank">View this post on GitHub</a>
</div>
{{ end }}
<div class="copyright">
{{ if .Site.Params.copyright }}
{{ if .Site.Params.copyrightUrl }}
<a href="{{ .Site.Params.copyrightUrl }}">{{ .Site.Params.copyright }}</a>
{{ else }}
<a href="{{ .Site.BaseURL }}license">{{ .Site.Params.copyright }}</a>
{{ end }}
{{ end }}
</div>
<div class="icons">
{{ if .Site.Params.facebook }}
<a href="https://facebook.com/{{ .Site.Params.facebook }}" target="_blank">
<img class="icon" src="{{ .Site.BaseURL }}img/facebook.svg" alt="facebook" />
</a>
{{ end }}
{{ if .Site.Params.github }}
<a href="https://github.com/{{ .Site.Params.github }}" target="_blank">
<img class="icon" src="{{ .Site.BaseURL }}img/github.svg" alt="github" />
</a>
{{ end }}
{{ if .Site.Params.twitter }}
<a href="https://twitter.com/{{ .Site.Params.twitter }}" target="_blank">
<img class="icon" src="{{ .Site.BaseURL }}img/twitter.svg" alt="twitter" />
</a>
{{ end }}
{{ if .Site.Params.linkedin }}
<a href="https://www.linkedin.com/in/{{ .Site.Params.linkedin }}" target="_blank">
<img class="icon" src="{{ .Site.BaseURL }}img/linkedin.svg" alt="linkedin" />
</a>
{{ end }}
{{ if .Site.Params.email }}
<a href="mailto:{{ .Site.Params.email }}">
<img class="icon" src="{{ .Site.BaseURL }}img/email.svg" alt="email" />
</a>
{{ end }}
{{ if .Site.RSSLink }}
<a href="{{ .Site.RSSLink }}">
<img class="icon" src="{{ .Site.BaseURL }}img/rss.svg" alt="rss" />
</a>
{{ end }}
</div>
</div>
</div>
{{ partial "footer_scripts" . }}
</body>
</html>