hugo-labs/layouts/_default/content.html
2018-10-01 10:14:50 +02:00

5 lines
222 B
HTML

{{ $dateFormat := default "02-01-2006 15:04" (index .Site.Params "date_format") }}
<h2><b>{{ .Title | markdownify }}{{ if not .Date.IsZero }} <small>{{ .Date.Format $dateFormat }}</small>{{ end }}</b></h2>
{{ .Content }}