diff options
author | Alan Pearce | 2014-06-07 10:34:22 +0100 |
---|---|---|
committer | Alan Pearce | 2014-06-07 10:34:22 +0100 |
commit | 8e077a0573cd45be7438ff617b59d7d3e72924ea (patch) | |
tree | a0d18dbd8c4fe3780801dd7dec2d8c644f1d41e1 | |
parent | 15e3433c673d692232b0140da8160324ef7c2fa2 (diff) | |
download | hyde-8e077a0573cd45be7438ff617b59d7d3e72924ea.tar.lz hyde-8e077a0573cd45be7438ff617b59d7d3e72924ea.tar.zst hyde-8e077a0573cd45be7438ff617b59d7d3e72924ea.zip |
Switch to semantic tags where appropriate
-rw-r--r-- | layouts/_default/list.html | 6 | ||||
-rw-r--r-- | layouts/_default/single.html | 10 | ||||
-rw-r--r-- | layouts/index.html | 10 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 24 |
4 files changed, 26 insertions, 24 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 38c880c..bc97cc9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,12 +1,12 @@ {{ template "theme/partials/head.html" . }} <body class="theme-base-0b layout-reverse"> {{ template "theme/partials/sidebar.html" . }} - <div class="content container"> + <main class="content container" role="main"> <ul class="posts"> {{ range .Data.Pages }} - <li><span><a href="{{ .Permalink }}">{{ .Title }}</a><time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></li> + <li><span><a href="{{ .Permalink }}">{{ .Title }}</a><time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02 15:04:05Z" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></li> {{ end }} </ul> - </div> + </main> </body> </html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ce35c85..ba9c5cb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,12 +1,12 @@ {{ template "theme/partials/head.html" . }} <body class="theme-base-0b layout-reverse"> {{ template "theme/partials/sidebar.html" . }} - <div class="content container"> - <div class="post"> + <main class="content container" role="main"> + <article class="post"> <h1>{{ .Title }}</h1> - <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> + <time class="post-date" datetime="{{ .Date.Format "2006-01-02 15:04:05Z" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time> {{ .Content }} - </div> - </div> + </article> + </main> </body> </html> diff --git a/layouts/index.html b/layouts/index.html index 44d9e6c..d820afc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,20 +1,20 @@ {{ template "theme/partials/head.html" . }} <body class="theme-base-0b layout-reverse"> {{ template "theme/partials/sidebar.html" . }} - <div class="content container"> + <main class="content container" role="main"> <div class="posts"> {{ range .Data.Pages }} - <div class="post"> + <article class="post"> <h1 class="post-title"> <a href="{{ .Permalink }}"> {{ .Title }} </a> </h1> - <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> + <time class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</time> {{ .Content }} - </div> + </article> {{ end }} </div> - </div> + </main> </body> </html> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index befbea4..08fd7cc 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,19 +1,21 @@ - <div class="sidebar"> + <aside class="sidebar"> <div class="container sidebar-sticky"> - <div class="sidebar-about"> + <section class="sidebar-about"> <h1>{{ .Site.Title }}</h1> <p class="lead"> {{ with .Site.Params.Description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}} </p> - </div> + </section> - <ul class="sidebar-nav"> - <li><a href="/">Home</a> </li> - {{ range .Site.Menus.main }} - <li><a href="{{.Url}}"> {{ .Name }} </a></li> - {{end}} - </ul> + <nav> + <ul class="sidebar-nav"> + <li><a href="/">Home</a> </li> + {{ range .Site.Menus.main }} + <li><a href="{{.Url}}"> {{ .Name }} </a></li> + {{end}} + </ul> + </nav> - <p>{{ with .Site.Params.Copyright }}{{.}}{{ else }}© {{.Now.Format "2006"}}. All rights reserved. {{end}}</p> + <footer>{{ with .Site.Params.Copyright }}{{.}}{{ else }}© {{.Now.Format "2006"}}. All rights reserved. {{end}}</footer> </div> - </div> + </aside> |