added readmore option & edited readme

This commit is contained in:
kimcc
2020-04-18 00:15:49 -05:00
parent 0596832043
commit de668f2349
5 changed files with 32 additions and 8 deletions

View File

@@ -14,7 +14,12 @@
{{ .Title }}
</a>
</h2>
<div><p>{{ .Summary }}</p></div>
<div>
<p>{{ .Summary }}</p>
{{ if (and (.Site.Params.showReadMore) (.Truncated)) }}
<p><a href="{{ .RelPermalink }}">Read more...</a></p>
{{ end }}
</div>
<div class="post-footer">
<time>{{ .Date.Format "January 2, 2006" }}</time>