semantic tweaks

This commit is contained in:
Joseph Hutchinson
2018-04-15 21:23:45 -04:00
parent ee1834cf53
commit b2bfcab666
4 changed files with 54 additions and 69 deletions

View File

@@ -1,26 +1,21 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
{{ partial "head.html" . }}
<body style="background-color: #f0f1f2;">
{{ partial "header.html" . }}
<div class="card-content-container">
<header class="list-header">
<h1 class="list-header-title">Sensors + Smarts</h1>
<h2 class="list-header-subtext">There is so much actionable data that goes to waste. Let's put your data to work.</h2>
</header>
<main class="card-container">
{{.Content}}
<section class="card-columns">
{{ range .Paginator.Pages }}
{{ .Render "li" }}
{{ end }}
</section>
</main>
<div class="pagination-nav">
<a href="#">&laquo; Older Posts</a>
<div>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</div>
<a href="#">Newer Posts &raquo;</a>
</div>
<body class="list-body">
{{ partial "nav-bar.html" . }}
<header class="list-header side-gutter">
<h1 class="list-header-title">Sensors + Smarts</h1>
<h2 class="list-header-subtext">There is so much actionable data that goes to waste. Let's put your data to work.</h2>
</header>
<main class="card-columns side-gutter">
{{ range .Paginator.Pages }}
{{ .Render "li" }}
{{ end }}
</main>
<div class="pagination-nav">
<a href="#">&laquo; Older Posts</a>
<div>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</div>
<a href="#">Newer Posts &raquo;</a>
</div>
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}

View File

@@ -1,27 +1,25 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
{{ partial "head.html" . }}
<body>
{{ partial "header.html" . }}
<div class="content-container">
<main class="content">
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<p class="post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
</header>
{{ if isset .Params "featuredimage" }}
<figure class="post-figure">
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}">
</figure>
{{ end }}
{{ .Content }}
</article>
<!--
If you're going to use DISQUS comments, insert code here.
-->
</main>
</div>
<body class="single-body">
{{ partial "nav-bar.html" . }}
<main class="content side-gutter">
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<p class="post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
</header>
{{ if isset .Params "featuredimage" }}
<figure class="post-figure">
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}">
</figure>
{{ end }}
{{ .Content }}
</article>
<!--
If you're going to use DISQUS comments, insert code here.
-->
</main>
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}
</body>