category menu

This commit is contained in:
Joseph Hutchinson
2018-04-27 16:13:14 -04:00
parent dbb82f6904
commit a37f605d31
8 changed files with 116 additions and 30 deletions

View File

@@ -9,9 +9,8 @@
<h2 class="card-title">{{ .Title }}</h2>
<p class="card-text">{{ .Description }}</p>
<div class="card-subtext muted-text">
<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;">#{{ .Params.categories }}</p>
<p>Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>
</div>
</article>
</a>

View File

@@ -2,10 +2,11 @@
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
{{ partial "head.html" . }}
<body class="list-body">
{{ partial "nav-bar.html" . }}
<main class="card-container side-gutter">
<header class="list-header">
<p class="list-header-subtext">Code It, Break It, Quick, Rewrite It</p>
<h1 class="list-header-title">Technologic</h1>
<p class="list-header-subtext">{{ .Description }}</p>
<h1 class="list-header-title">{{ .Title }}</h1>
</header>
{{ range .Paginator.Pages }}
{{ .Render "li" }}

View File

@@ -10,9 +10,8 @@
<h2 class="card-title">{{ .Title }}</h2>
<p class="card-text">{{ .Description }}</p>
<div class="card-subtext muted-text">
<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;">#{{ .Params.categories }}</p>
<p>Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>
</div>
</article>
</a>

View File

@@ -6,7 +6,7 @@
<main class="content side-padding">
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<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" }}