Update for the day

This commit is contained in:
Joseph Hutchinson
2018-03-21 16:30:23 -04:00
parent 97498e584f
commit 51a17016b7
3 changed files with 62 additions and 36 deletions

View File

@@ -1,7 +1,10 @@
<a href="{{ .Permalink }}" class="card-link-wrapper" rel="bookmark" title="Link to {{ .Title }}" >
{{ if isset .Params "featuredimage" }}
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}" class="card-img">
{{ end }}
<article class="card">
<h2 class="card-title">{{ .Title }}</h2>
<div class="post-date card-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></div>
<p class="card-date post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></div>
<p class="card-text">{{ .Description }}</p>
<!-- {{ if .Truncated }}<a class="moretag" href="{{ .Permalink }}">Continue reading</a>{{ end }} -->
</article>

View File

@@ -5,10 +5,15 @@
<div class="content-container">
<main class="content">
<article class="post">
<header>
<h1>{{ .Title }}</h1>
<time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}" class="post-date">{{ .PublishDate.Format "Jan 2, 2006" }}</time>
<header class="post-header">
<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" }}
<figure class="post-figure">
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}">
</figure>
{{ end }}
{{ .Content }}
</article>
<hr />