1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-20 09:32:19 +01:00

added the ability to remove the date and author from a post

This commit is contained in:
Simon Gemmell 2017-08-11 21:24:07 +10:00
parent ce91352dd5
commit 4799b09530

View File

@ -59,7 +59,9 @@
<article class="blog-post">
<header>
<h2 class="blog-post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
{{ if ne .Params.showmeta false }}
<p class="blog-post-meta"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format $dateFormat }}</time> by {{ .Params.author | default .Site.Params.author }}{{ if or (.Params.categories) (.Params.tags) }} in {{ partial "meta-terms.html" . }}{{ end }}</p>
{{ end }}
</header>
{{ .Content }}