Merge pull request #111 from jdl031/patch-1

Allow for omitting date on post
This commit is contained in:
Jake Wiesler 2020-08-09 16:52:17 -04:00 committed by GitHub
commit b2988e0034
1 changed files with 1 additions and 2 deletions

View File

@ -10,8 +10,7 @@
<div class="post">
<header class="post__header">
<h1 id="post__title">{{.Title}}</h1>
<time datetime="{{ .Date }}" class="post__date"
>{{ .Date.Format $dateFormat }}</time>
{{ if .Date }}<time datetime="{{ .Date }}" class="post__date">{{ .Date.Format $dateFormat }}</time> {{ end }}
</header>
<article class="post__content">
{{ partial "anchored-headings.html" .Content }}