Style cards

This commit is contained in:
Joseph Hutchinson
2018-04-16 12:44:13 -04:00
parent 584ad7c2ab
commit 1fc1a7c256
3 changed files with 36 additions and 16 deletions

View File

@@ -8,7 +8,10 @@
<article class="card-body">
<h2 class="card-title">{{ .Title }}</h2>
<p class="card-text">{{ .Description }}</p>
<p class="card-date post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
<!-- {{ if .Truncated }}<a class="moretag" href="{{ .Permalink }}">Continue reading</a>{{ end }} -->
<div class="card-subtext">
<p style="margin: 0 1em 0 0;">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
<p style="margin: 0 1em 0 0;">|</p>
<p style="margin: 0 1em 0 0;">#Category</p>
</div>
</article>
</a>

View File

@@ -3,16 +3,16 @@
{{ partial "head.html" . }}
<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">
<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>
{{ range .Paginator.Pages }}
{{ .Render "li" }}
{{ end }}
</main>
<div class="pagination-nav">
<div class="pagination-nav side-gutter">
<a href="#">&laquo; Older Posts</a>
<div>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</div>
<a href="#">Newer Posts &raquo;</a>