diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-12-01 19:11:00 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-12-01 19:11:00 -0500 |
commit | 4f4056cb1a14812e460aacb6ae80b70cf4f42b49 (patch) | |
tree | 325d3d29ceb9d46188cf34dfc6e973ed4674a422 /generators | |
parent | 58beeda2a80507da63228c6775a9e761df70fc25 (diff) | |
download | thedroneely.com-4f4056cb1a14812e460aacb6ae80b70cf4f42b49.tar.gz thedroneely.com-4f4056cb1a14812e460aacb6ae80b70cf4f42b49.tar.bz2 thedroneely.com-4f4056cb1a14812e460aacb6ae80b70cf4f42b49.zip |
generators/hugo/layouts/_default/single: Use main and aside instead of section
Diffstat (limited to 'generators')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/single.html | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/single.html b/generators/hugo/themes/tdro/layouts/_default/single.html index 9e59ed7..707ca2f 100644 --- a/generators/hugo/themes/tdro/layouts/_default/single.html +++ b/generators/hugo/themes/tdro/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }} -<section class="section is-fullheight" itemscope itemtype="https://schema.org/WebPage"> +<main class="section is-fullheight" itemscope itemtype="https://schema.org/WebPage"> <div class="container"> <div class="columns is-centered"> <div class="column is-7"> @@ -18,33 +18,30 @@ {{- .Content | replaceRE "<p>" "<p class=\"serif is-size-serif\">" | replaceRE "<h2" "<h2 class=\"serif\"" | replaceRE "<h3" "<h3 class=\"serif\"" | safeHTML }} - <div class="has-text-right"> - <p class="article__updated has-text-grey-dark is-inline-block"> - Updated - {{ if .Params.updated }} - {{ dateFormat "2 January 2006" .Params.updated }} - {{ else }} - {{ dateFormat "2 January 2006" .Params.date }} - {{ end }} - </p> - </div> - + <div class="has-text-right"> + <p class="article__updated has-text-grey-dark is-inline-block"> + Updated + {{ if .Params.updated }} + {{ dateFormat "2 January 2006" .Params.updated }} + {{ else }} + {{ dateFormat "2 January 2006" .Params.date }} + {{ end }} + </p> + </div> </article> - </div> </div> </div> +</main> -</section> - -<section class="section content article__more__content has-margin-bottom-none"> +<aside class="section content article__more__content has-margin-bottom-none"> <div class="container"> <div class="columns is-tablet is-centered"> <div class="column is-7"> <section class="section-vertical"> - <h1 class="is-size-4 has-margin-bottom-lg">More Content</h1> + <h2 class="is-size-4 has-margin-bottom-lg">More Content</h2> {{ $related := shuffle .Site.RegularPages | first 3 }} {{ with $related }} {{ range . }} @@ -66,9 +63,9 @@ </div> </div> </div> -</section> +</aside> -<section class="section content article__webring"> +<aside class="section content article__webring"> <div class="container"> <div class="columns is-tablet is-centered"> <div class="column is-7"> @@ -88,7 +85,7 @@ </div> </div> </div> -</section> +</aside> {{ if .Params.syntax }} <link rel="stylesheet" href="/css/syntax-highlight.css"> |