Make theme more generic, flexibility on description and home img

This commit is contained in:
Joe Hutchinson
2018-12-18 10:56:33 -05:00
parent 22273ffd5d
commit cf6e84b564
6 changed files with 11 additions and 35 deletions

16
layouts/_default/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>