Added nav bar and improved card look

This commit is contained in:
Joseph Hutchinson
2018-03-27 14:13:04 -04:00
parent efcb6beb27
commit 491ed97b8e
7 changed files with 81 additions and 9 deletions

View File

@@ -4,8 +4,8 @@
{{ end }}
<article class="card">
<h2 class="card-title">{{ .Title }}</h2>
<p class="card-date post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
<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 }} -->
</article>
</a>

View File

@@ -2,16 +2,18 @@
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
{{ partial "head.html" . }}
<body style="background-color: #f3f3f3;">
<div class="content-container">
{{ partial "header.html" . }}
<div class="card-content-container">
<main class="card-container">
{{.Content}}
<section class="card-columns">
{{ range $index, $page := .Paginator.Pages }}
{{ range .Paginator.Pages }}
{{ .Render "li" }}
{{ end }}
</section>
</main>
</div>
</body>
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}
</html>