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
This commit is contained in:
Michael Noronha
2017-11-09 16:22:28 -06:00
committed by GitHub
parent b1fa4bb421
commit 969bd5ca4e
14 changed files with 217 additions and 199 deletions

View File

@@ -6,9 +6,9 @@
<body>
{{ if or (.Site.Params.small_banner_logo) (.IsPage) }}
<section class="header">
<div class="header column">
{{ else }}
<section class="header header-home">
<div class="header header-home column">
{{ end }}
<div class="container">
<a href="{{ .Site.BaseURL }}"><img class="logo" src="{{ .Site.Params.logofile | absURL }}" alt="logo" /></a>
@@ -17,22 +17,22 @@
<nav>
<ul>
{{ if ne (len (where .Site.RegularPages "Section" "blog")) 0 }}
<a href="{{ .Site.BaseURL }}blog/"><li>Blog</li></a>
<li><a href="{{ .Site.BaseURL }}blog/">Blog</a></li>
{{ end }}
{{ range $.Site.Home.Sections }}
{{ range first 1 (where .Pages "Section" "ne" "")}}
{{ if ne .Section "blog"}}
<a href="{{ .Section | urlize | absURL }}"><li>{{ .Section }}</li></a>
<li><a href="{{ .Section | urlize | absURL }}">{{ .Section }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ range where .Site.RegularPages "Section" ""}}
{{ if and (ne .Title "License") (ne .Title "Home")}}
<a href="{{ .Permalink }}"><li>{{ .Title }}</li></a>
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</nav>
</div>
</div>
</section>
</div>