hugo-labs/layouts/_default/content.html
2018-09-25 14:35:51 +02:00

5 lines
215 B
HTML

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