Make theme fit more generic pages better

This commit is contained in:
Joe Hutchinson
2018-12-18 09:43:27 -05:00
parent 503f0efe0d
commit 22273ffd5d
6 changed files with 3 additions and 3 deletions

17
layouts/post/li-next.html Normal file
View File

@@ -0,0 +1,17 @@
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
href="{{ .Permalink }}" class="card blog-card" rel="bookmark" >
{{ if isset .Params "featuredimage" }}
<div class="card-img-container">
<p class="card-img-overlay">Next Article</p>
<img src="{{.Params.featuredimage }}" class="card-img">
</div>
{{ end }}
<article class="card-body">
<h2 class="card-title">{{ .Title }}</h2>
<p class="card-text">{{ .Description }}</p>
<div class="card-subtext muted-text">
<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>

16
layouts/post/li.html Normal file
View File

@@ -0,0 +1,16 @@
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
href="{{ .Permalink }}" class="card blog-card" rel="bookmark" >
{{ if isset .Params "featuredimage" }}
<div class="card-img-container">
<img src="{{.Params.featuredimage }}" class="card-img">
</div>
{{ end }}
<article class="card-body">
<h2 class="card-title">{{ .Title }}</h2>
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}</p>
<div class="card-subtext muted-text">
<p>Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>
</div>
</article>
</a>

31
layouts/post/single.html Normal file
View File

@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
{{ partial "head.html" . }}
<body class="single-body">
{{ partial "nav-bar.html" . }}
<main class="content side-text-padding">
<article class="post dropcase">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
</header>
{{ if isset .Params "featuredimage" }}
<figure class="post-figure">
<img src="{{.Params.featuredimage }}">
</figure>
{{ end }}
{{ .Content }}
</article>
<!--
If you're going to use DISQUS comments, insert code here.
-->
</main>
<nav class="end-nav side-padding">
{{ with .PrevPage }}
{{ .Render "li-next" }}
{{ end }}
{{ partial "home-card.html" . }}
</nav>
{{ partial "scripts.html" . }}
</body>
</html>