Skip to content

Commit badc61e

Browse files
committed
Add showthedate param
1 parent 93d2a49 commit badc61e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/_default/single.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{{ define "content" }}
22
<div class="blog-post">
33
<h1>{{ .Title }}</h1>
4+
{{ if .Params.showthedate | default "true" }}
45
<div class="blog-post-subheader">
56
<time>{{ .Date.Format "02 Jan 2006" }}</time>
67
</div>
8+
{{ end }}
79
<div class="blog-post-content">
810
{{ .Content }}
911
</div>

0 commit comments

Comments
 (0)