* 'master' of https://github.com/budparr/gohugo-theme-ananke:
  Improve semantic structure of pages (#151)
This commit is contained in:
budparr 2019-01-07 19:42:33 -05:00
commit ad2d643966
No known key found for this signature in database
GPG key ID: DCDBBD44415F4A29
3 changed files with 11 additions and 11 deletions

View file

@ -1,8 +1,8 @@
{{ define "main" }} {{ define "main" }}
<article class="pa3 pa4-ns nested-copy-line-height nested-img"> <article class="pa3 pa4-ns nested-copy-line-height nested-img">
<main class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray"> <section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
{{- .Content -}} {{- .Content -}}
</main> </section>
<section class="flex-ns flex-wrap justify-around mt5"> <section class="flex-ns flex-wrap justify-around mt5">
{{ range .Paginator.Pages }} {{ range .Paginator.Pages }}
<div class="relative w-100 w-30-l mb4 bg-white"> <div class="relative w-100 w-30-l mb4 bg-white">

View file

@ -34,13 +34,13 @@
{{ end }} {{ end }}
</header> </header>
<main class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l"> <section class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
{{- .Content -}} {{- .Content -}}
{{- partial "tags.html" . -}} {{- partial "tags.html" . -}}
<div class="mt6"> <div class="mt6">
{{ template "_internal/disqus.html" . }} {{ template "_internal/disqus.html" . }}
</div> </div>
</main> </section>
<aside class="w-30-l mt6-l"> <aside class="w-30-l mt6-l">
{{- partial "menu-contextual.html" . -}} {{- partial "menu-contextual.html" . -}}

View file

@ -3,10 +3,10 @@
This template is the same as the default and is here to demonstrate that if you have a content directory called "post" you can create a layouts directory, just for that section. This template is the same as the default and is here to demonstrate that if you have a content directory called "post" you can create a layouts directory, just for that section.
*/}} */}}
<article class="pa3 pa4-ns nested-copy-line-height nested-img"> <article class="pa3 pa4-ns nested-copy-line-height nested-img">
<main class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray"> <section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
{{ .Content }} {{ .Content }}
</main> </section>
<section class="flex-ns flex-wrap justify-around mt5"> <aside class="flex-ns flex-wrap justify-around mt5">
{{ range .Paginator.Pages }} {{ range .Paginator.Pages }}
<div class="relative w-100 w-30-l mb4 bg-white"> <div class="relative w-100 w-30-l mb4 bg-white">
{{/* {{/*
@ -15,7 +15,7 @@
{{ .Render "summary" }} {{ .Render "summary" }}
</div> </div>
{{ end }} {{ end }}
</section> </aside>
{{ template "_internal/pagination.html" . }} {{ template "_internal/pagination.html" . }}
</article> </article>
{{ end }} {{ end }}